[][src]Struct rpki::crl::Crl

pub struct Crl { /* fields omitted */ }

An RPKI certificate revocation list.

A value of this type is the result of parsing a CRL file found in the RPKI repository. You can use the decode function for parsing a CRL out of such a file.

Methods

impl Crl[src]

pub fn signed_data(&self) -> &SignedData[src]

Returns a reference to the signed data wrapper.

pub fn as_cert_list(&self) -> &TbsCertList<RevokedCertificates>[src]

Returns a reference to the payload.

This also available via the AsRef and Deref impls.

pub fn cache_serials(&mut self)[src]

Caches the serial numbers in the CRL.

Doing this will speed up calls to contains later on at the price of additional memory consumption.

pub fn contains(&self, serial: Serial) -> bool[src]

Returns whether the given serial number is on this revocation list.

impl Crl[src]

pub fn decode<S: Source>(source: S) -> Result<Self, S::Err>[src]

Parses a source as a certificate revocation list.

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

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

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

Parses the content of a certificate revocation list.

pub fn validate(&self, public_key: &PublicKey) -> Result<(), ValidationError>[src]

Validates the certificate revocation list.

The list’s signature is validated against the provided public key.

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

pub fn to_captured(&self) -> Captured[src]

Returns a captured encoding of the CRL.

Methods from Deref<Target = TbsCertList<RevokedCertificates>>

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

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

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

Returns a reference to the issuer name of the CRL.

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

Returns 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 revoked_certs(&self) -> &C[src]

Returns a reference to 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 crl_number(&self) -> Serial[src]

Returns the CRL number.

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 Clone for Crl[src]

impl Debug for Crl[src]

impl Deref for Crl[src]

type Target = TbsCertList<RevokedCertificates>

The resulting type after dereferencing.

impl Serialize for Crl[src]

impl<'de> Deserialize<'de> for Crl[src]

Auto Trait Implementations

impl Send for Crl

impl Sync for Crl

impl Unpin for Crl

impl UnwindSafe for Crl

impl RefUnwindSafe for Crl

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]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]