CertificateConfig

Trait CertificateConfig 

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

Required Methods§

Source

fn intermediates(&self) -> Result<Arc<Vec<X509>>, Self::Error>

Computes the list of intermediate certificates.

Source

fn certificate(&self) -> Result<Arc<X509CertificateInfo>, Self::Error>

Computes the X509 leaf certificate

Provided Methods§

Source

fn is_dynamic(&self) -> bool

Whether the certificate can change over time, ie Let’s Encrypt certificates.

Source

fn memoize(self) -> MemoizedCertificate<Self>
where Self: Sized,

Returns a memoized CertificateConfig.

Source

fn cache(self) -> Result<CachedCertificate, Self::Error>
where Self: Sized,

Returns a cached CertificateConfig.

Implementations on Foreign Types§

Source§

impl<T: CertificateConfig> CertificateConfig for Arc<T>

Implementors§