pub struct Certificate { /* private fields */ }
Expand description
An issued certificate together with the parameters used to generate it.
Implementations§
Source§impl Certificate
impl Certificate
Sourcepub fn params(&self) -> &CertificateParams
pub fn params(&self) -> &CertificateParams
Returns the certificate parameters
Sourcepub fn key_identifier(&self) -> Vec<u8> ⓘ
pub fn key_identifier(&self) -> Vec<u8> ⓘ
Calculates a subject key identifier for the certificate subject’s public key. This key identifier is used in the SubjectKeyIdentifier X.509v3 extension.
Sourcepub fn der(&self) -> &CertificateDer<'static>
pub fn der(&self) -> &CertificateDer<'static>
Get the certificate in DER encoded format.
CertificateDer
implements Deref<Target = [u8]>
and AsRef<[u8]>
, so you can easily
extract the DER bytes from the return value.
Trait Implementations§
Source§impl From<Certificate> for CertificateDer<'static>
impl From<Certificate> for CertificateDer<'static>
Source§fn from(cert: Certificate) -> Self
fn from(cert: Certificate) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Certificate
impl RefUnwindSafe for Certificate
impl Send for Certificate
impl Sync for Certificate
impl Unpin for Certificate
impl UnwindSafe for Certificate
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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