[][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 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 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: &Unsigned) -> bool[src]

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

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

Returns whether the CRL’s nextUpdate time has passed.

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

Trait Implementations

impl Clone for Crl[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Crl[src]

Auto Trait Implementations

impl Send for Crl

impl Sync for Crl

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.