Skip to main content

CredentialBundleParser

Trait CredentialBundleParser 

Source
pub trait CredentialBundleParser: Send + Sync {
    // Required method
    fn parse(
        &self,
        material: SecretMaterial,
        provider_version: Option<SecretVersion>,
    ) -> AuthServiceResult<ValidatedCredential>;
}
Expand description

Parser injected by the owning protocol/TLS adapter.

Required Methods§

Source

fn parse( &self, material: SecretMaterial, provider_version: Option<SecretVersion>, ) -> AuthServiceResult<ValidatedCredential>

Parses and validates a single atomic provider bundle.

The implementation must validate the entire certificate/key/proof relationship before returning. The returned provider version must equal provider_version.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§