Struct x509_parser::revocation_list::RevokedCertificate[][src]

pub struct RevokedCertificate<'a> {
    pub user_certificate: BigUint,
    pub revocation_date: ASN1Time,
    pub extensions: HashMap<Oid<'a>, X509Extension<'a>>,
    // some fields omitted
}

Fields

user_certificate: BigUint

The Serial number of the revoked certificate

revocation_date: ASN1Time

The date on which the revocation occurred is specified.

extensions: HashMap<Oid<'a>, X509Extension<'a>>

Additional information about revocation

Implementations

impl<'a> RevokedCertificate<'a>[src]

pub fn serial(&self) -> &BigUint[src]

Return the serial number of the revoked certificate

pub fn raw_serial(&self) -> &[u8][src]

Get the raw bytes of the certificate serial number

pub fn raw_serial_as_string(&self) -> String[src]

Get a formatted string of the certificate serial number, separated by ‘:’

pub fn reason_code(&self) -> Option<(bool, ReasonCode)>[src]

Get the code identifying the reason for the revocation, if present

pub fn invalidity_date(&self) -> Option<(bool, ASN1Time)>[src]

Get the invalidity date, if present

The invalidity date is the date on which it is known or suspected that the private key was compromised or that the certificate otherwise became invalid.

pub fn extensions(&self) -> &HashMap<Oid<'_>, X509Extension<'_>>[src]

Get the certificate extensions.

Trait Implementations

impl<'a> Debug for RevokedCertificate<'a>[src]

impl<'a> PartialEq<RevokedCertificate<'a>> for RevokedCertificate<'a>[src]

impl<'a> StructuralPartialEq for RevokedCertificate<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for RevokedCertificate<'a>

impl<'a> Send for RevokedCertificate<'a>

impl<'a> Sync for RevokedCertificate<'a>

impl<'a> Unpin for RevokedCertificate<'a>

impl<'a> UnwindSafe for RevokedCertificate<'a>

Blanket Implementations

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

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

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

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

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

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

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv for T

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.