PathValidator

Trait PathValidator 

Source
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§

Required Methods§

Source

fn validate( &self, path: Vec<&Certificate>, ) -> Result<CertificatePathValidation, Self::PathValidatorError>

Validates path, returning results as CertificatePathValidation

Implementors§