pub struct Cert<'a> {
pub(crate) ee_or_ca: EndEntityOrCa<'a>,
pub(crate) serial: Input<'a>,
pub(crate) signed_data: SignedData<'a>,
pub(crate) issuer: Input<'a>,
pub(crate) validity: Input<'a>,
pub(crate) subject: Input<'a>,
pub(crate) spki: Value<'a>,
pub(crate) basic_constraints: Option<Input<'a>>,
pub(crate) key_usage: Option<Input<'a>>,
pub(crate) eku: Option<Input<'a>>,
pub(crate) name_constraints: Option<Input<'a>>,
pub(crate) subject_alt_name: Option<Input<'a>>,
}
Expand description
A parsed X509 certificate.
Fields§
§ee_or_ca: EndEntityOrCa<'a>
§serial: Input<'a>
§signed_data: SignedData<'a>
§issuer: Input<'a>
§validity: Input<'a>
§subject: Input<'a>
§spki: Value<'a>
§basic_constraints: Option<Input<'a>>
§key_usage: Option<Input<'a>>
§eku: Option<Input<'a>>
§name_constraints: Option<Input<'a>>
§subject_alt_name: Option<Input<'a>>
Implementations§
source§impl<'a> Cert<'a>
impl<'a> Cert<'a>
pub(crate) fn from_der( cert_der: Input<'a>, ee_or_ca: EndEntityOrCa<'a>, ) -> Result<Self, Error>
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> Freeze for Cert<'a>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more