[][src]Struct rpki::crl::TbsCertList

pub struct TbsCertList<C> { /* fields omitted */ }

The payload of a certificate revocation list.

This type is generic over the list of revoked certificates.

Methods

impl<C> TbsCertList<C>[src]

pub fn new(
    signature: SignatureAlgorithm,
    issuer: Name,
    this_update: Time,
    next_update: Time,
    revoked_certs: C,
    authority_key_id: KeyIdentifier,
    crl_number: Serial
) -> Self
[src]

Creates a new value from the necessary data.

pub fn into_crl<S: Signer>(
    self,
    signer: &S,
    key: &S::KeyId
) -> Result<Crl, SigningError<S::Error>> where
    C: IntoIterator<Item = CrlEntry>,
    <C as IntoIterator>::IntoIter: Clone
[src]

Converts the value into a signed CRL.

impl<C> TbsCertList<C>[src]

pub fn signature(&self) -> SignatureAlgorithm[src]

Returns the algorithm used by the issuer to sign the CRL.

pub fn set_signature(&mut self, signature: SignatureAlgorithm)[src]

Sets the signature algorithm.

pub fn issuer(&self) -> &Name[src]

Returns a reference to the issuer name of the CRL.

pub fn set_issuer(&mut self, issuer: Name)[src]

Sets the issuer name.

pub fn this_update(&self) -> Time[src]

Returns the update time of this CRL.

pub fn set_this_update(&mut self, this_update: Time)[src]

Sets the update time of this CRL.

pub fn next_update(&self) -> Time[src]

Returns the time of next update if present.

pub fn is_stale(&self) -> bool[src]

Returns whether the CRL’s nextUpdate time has passed.

pub fn set_next_update(&mut self, next_update: Time)[src]

Sets the time of next update.

pub fn revoked_certs(&self) -> &C[src]

Returns a reference to the list of revoked certificates.

pub fn revoked_certs_mut(&mut self) -> &mut C[src]

Returns a mutable reference to the list of revoked certificates.

pub fn set_revoked_certs(&mut self, revoked_certs: C)[src]

Sets the list of revoked certificates.

pub fn authority_key_identifier(&self) -> &KeyIdentifier[src]

Returns a reference to the authority key identifier if present.

pub fn set_authority_key_identifier(&mut self, id: KeyIdentifier)[src]

Sets the authority key identifer.

pub fn crl_number(&self) -> Serial[src]

Returns the CRL number.

pub fn set_crl_number(&mut self, crl_number: Serial)[src]

Sets the CRL number.

impl TbsCertList<RevokedCertificates>[src]

pub fn take_from<S: Source>(cons: &mut Constructed<S>) -> Result<Self, S::Err>[src]

Takes a value from the beginning of a encoded constructed value.

pub fn encode_ref<'a>(&'a self) -> impl Values + 'a[src]

Returns a value encoder for a reference to this value.

Trait Implementations

impl AsRef<TbsCertList<RevokedCertificates>> for Crl[src]

impl<C> From<TbsCertList<C>> for TbsCertList<RevokedCertificates> where
    C: IntoIterator<Item = CrlEntry>,
    <C as IntoIterator>::IntoIter: Clone
[src]

impl<C: Clone> Clone for TbsCertList<C>[src]

impl<C: Debug> Debug for TbsCertList<C>[src]

Auto Trait Implementations

impl<C> Send for TbsCertList<C> where
    C: Send

impl<C> Sync for TbsCertList<C> where
    C: Sync

impl<C> Unpin for TbsCertList<C> where
    C: Unpin

impl<C> UnwindSafe for TbsCertList<C> where
    C: UnwindSafe

impl<C> RefUnwindSafe for TbsCertList<C> where
    C: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]