[−][src]Struct rpki::crl::Crl
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]
cons: &mut Constructed<S>
) -> Result<Self, S::Err>
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(&self) -> 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
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,