pub trait CertificateConfig: IsGlobal {
type Error: IsGlobalError;
// Required methods
fn intermediates(&self) -> Result<Arc<Vec<X509>>, Self::Error>;
fn certificate(&self) -> Result<Arc<X509CertificateInfo>, Self::Error>;
// Provided methods
fn is_dynamic(&self) -> bool { ... }
fn memoize(self) -> MemoizedCertificate<Self>
where Self: Sized { ... }
fn cache(self) -> Result<CachedCertificate, Self::Error>
where Self: Sized { ... }
}Expand description
Trait for X509 certificate along with the intermediates.
Required Associated Types§
type Error: IsGlobalError
Required Methods§
Sourcefn intermediates(&self) -> Result<Arc<Vec<X509>>, Self::Error>
fn intermediates(&self) -> Result<Arc<Vec<X509>>, Self::Error>
Computes the list of intermediate certificates.
Sourcefn certificate(&self) -> Result<Arc<X509CertificateInfo>, Self::Error>
fn certificate(&self) -> Result<Arc<X509CertificateInfo>, Self::Error>
Computes the X509 leaf certificate
Provided Methods§
Sourcefn is_dynamic(&self) -> bool
fn is_dynamic(&self) -> bool
Whether the certificate can change over time, ie Let’s Encrypt certificates.
Sourcefn memoize(self) -> MemoizedCertificate<Self>where
Self: Sized,
fn memoize(self) -> MemoizedCertificate<Self>where
Self: Sized,
Returns a memoized CertificateConfig.
Sourcefn cache(self) -> Result<CachedCertificate, Self::Error>where
Self: Sized,
fn cache(self) -> Result<CachedCertificate, Self::Error>where
Self: Sized,
Returns a cached CertificateConfig.