Trait mls_rs::identity::x509::X509CredentialValidator
source · pub trait X509CredentialValidator {
type Error: IntoAnyError;
// Required method
fn validate_chain(
&self,
chain: &CertificateChain,
timestamp: Option<MlsTime>
) -> Result<SignaturePublicKey, Self::Error>;
}Expand description
X.509 certificate validation trait.
Required Associated Types§
type Error: IntoAnyError
Required Methods§
sourcefn 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.
If timestamp is set to None then expiration checks should be skipped.