[][src]Struct x509_signature::X509Certificate

pub struct X509Certificate<'a> { /* fields omitted */ }

A parsed (but not validated) X.509 version 3 certificate.

Methods

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

pub fn das(&self) -> DataAlgorithmSignature<'a>[src]

The tbsCertificate, signatureAlgorithm, and signature

pub fn serial(&self) -> &'a [u8][src]

The serial number. Big-endian and non-empty.

pub fn issuer(&self) -> &'a [u8][src]

X.509 issuer

pub fn not_before(&self) -> u64[src]

The earliest time, in seconds since the Unix epoch, that the certificate is valid

pub fn not_after(&self) -> u64[src]

The latest time, in seconds since the Unix epoch, that the certificate is valid

pub fn subject(&self) -> &'a [u8][src]

X.509 subject

pub fn subject_public_key_info(&self) -> SubjectPublicKeyInfo<'a>[src]

The subjectPublicKeyInfo, in the format used by OpenSSL

pub fn extensions(&self) -> ExtensionIterator<'a>[src]

An iterator over the certificate’s extensions

pub fn verify_signature_against_scheme(
    &self,
    time: u64,
    scheme: SignatureScheme,
    message: &[u8],
    signature: &[u8]
) -> Result<(), Error>
[src]

Verify a signature made by the certificate

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

The tbsCertficate

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

The AlgorithmId of the algorithm used to sign this certificate

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

The signature of the certificate

pub fn verify_signature_of_certificate(
    &self,
    time: u64,
    cert: &X509Certificate
) -> Result<(), Error>
[src]

Verify that cert is signed by this certificate’s secret key

pub fn verify_signature_against_algorithmid(
    &self,
    time: u64,
    algorithm_id: &[u8],
    message: &[u8],
    signature: &[u8]
) -> Result<(), Error>
[src]

Verify a signature made by the certificate’s secret key

Trait Implementations

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

Auto Trait Implementations

impl<'a> Send for X509Certificate<'a>

impl<'a> Sync for X509Certificate<'a>

impl<'a> Unpin for X509Certificate<'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> From<T> for T[src]

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

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.