pub struct X509Validator { /* private fields */ }
Implementations§
Source§impl X509Validator
impl X509Validator
pub fn new(root_ca_list: Vec<DerCertificate>) -> Result<Self, X509Error>
pub fn with_system_ca(self) -> Self
pub fn validate_chain( &self, chain: &CertificateChain, timestamp: Option<MlsTime>, ) -> Result<SignaturePublicKey, X509Error>
Trait Implementations§
Source§impl Clone for X509Validator
impl Clone for X509Validator
Source§fn clone(&self) -> X509Validator
fn clone(&self) -> X509Validator
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 X509Validator
impl Debug for X509Validator
Source§impl X509CredentialValidator for X509Validator
impl X509CredentialValidator for X509Validator
type Error = X509Error
Source§fn validate_chain(
&self,
chain: &CertificateChain,
timestamp: Option<MlsTime>,
) -> Result<SignaturePublicKey, Self::Error>
fn validate_chain( &self, chain: &CertificateChain, timestamp: Option<MlsTime>, ) -> Result<SignaturePublicKey, Self::Error>
Validate a certificate chain. Read more
Auto Trait Implementations§
impl Freeze for X509Validator
impl RefUnwindSafe for X509Validator
impl Send for X509Validator
impl Sync for X509Validator
impl Unpin for X509Validator
impl UnwindSafe for X509Validator
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