#[non_exhaustive]pub struct X509Reader {}
Implementations§
Source§impl X509Reader
impl X509Reader
pub fn new() -> X509Reader
Trait Implementations§
Source§impl Clone for X509Reader
impl Clone for X509Reader
Source§fn clone(&self) -> X509Reader
fn clone(&self) -> X509Reader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for X509Reader
impl Debug for X509Reader
Source§impl Default for X509Reader
impl Default for X509Reader
Source§fn default() -> X509Reader
fn default() -> X509Reader
Returns the “default value” for a type. Read more
Source§impl X509CertificateReader for X509Reader
impl X509CertificateReader for X509Reader
type Error = X509Error
Source§fn subject_bytes(
&self,
certificate: &DerCertificate,
) -> Result<Vec<u8>, Self::Error>
fn subject_bytes( &self, certificate: &DerCertificate, ) -> Result<Vec<u8>, Self::Error>
Der encoded bytes of a certificate subject field.
Source§fn subject_components(
&self,
certificate: &DerCertificate,
) -> Result<Vec<SubjectComponent>, Self::Error>
fn subject_components( &self, certificate: &DerCertificate, ) -> Result<Vec<SubjectComponent>, Self::Error>
Parsed certificate subject field components.
Source§fn subject_alt_names(
&self,
certificate: &DerCertificate,
) -> Result<Vec<SubjectAltName>, Self::Error>
fn subject_alt_names( &self, certificate: &DerCertificate, ) -> Result<Vec<SubjectAltName>, Self::Error>
Parsed subject alt name extensions of a certificate.
Source§fn public_key(
&self,
certificate: &DerCertificate,
) -> Result<SignaturePublicKey, Self::Error>
fn public_key( &self, certificate: &DerCertificate, ) -> Result<SignaturePublicKey, Self::Error>
Get the subject public key of a certificate.
Auto Trait Implementations§
impl Freeze for X509Reader
impl RefUnwindSafe for X509Reader
impl Send for X509Reader
impl Sync for X509Reader
impl Unpin for X509Reader
impl UnwindSafe for X509Reader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more