pub struct Cert<'a> { /* private fields */ }
Expand description
A parsed X509 certificate.
Implementations
sourceimpl<'a> Cert<'a>
impl<'a> Cert<'a>
sourcepub fn serial(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
pub fn serial(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
Raw DER encoded certificate serial number.
sourcepub fn issuer(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
pub fn issuer(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
Raw DER encoded certificate issuer.
sourcepub fn subject(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
pub fn subject(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
Raw DER encoded certificate subject.
sourcepub fn end_entity_or_ca(&self) -> &EndEntityOrCa<'_>
pub fn end_entity_or_ca(&self) -> &EndEntityOrCa<'_>
Returns an indication of whether the certificate is an end-entity (leaf) certificate, or a certificate authority.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Cert<'a>
impl<'a> Send for Cert<'a>
impl<'a> Sync for Cert<'a>
impl<'a> Unpin for Cert<'a>
impl<'a> UnwindSafe for Cert<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more