pub trait PathValidator {
type PathValidatorError: PathValidatorError;
// Required method
fn validate(
&self,
path: Vec<&Certificate>,
) -> Result<CertificatePathValidation, Self::PathValidatorError>;
}Expand description
Certificate path validation. Implement to customize behavior. Note: X509 certificate path validation is not trivial. Implement to add business logic, but leverage a trusted X509 validator within.
Required Associated Types§
Sourcetype PathValidatorError: PathValidatorError
type PathValidatorError: PathValidatorError
Error type
Required Methods§
Sourcefn validate(
&self,
path: Vec<&Certificate>,
) -> Result<CertificatePathValidation, Self::PathValidatorError>
fn validate( &self, path: Vec<&Certificate>, ) -> Result<CertificatePathValidation, Self::PathValidatorError>
Validates path, returning results as CertificatePathValidation