Trait x509_cert::ext::AsExtension
source · pub trait AsExtension: AssociatedOid + Encode {
// Required method
fn critical(&self, subject: &Name, extensions: &[Extension]) -> bool;
// Provided method
fn to_extension(
&self,
subject: &Name,
extensions: &[Extension]
) -> Result<Extension, Error> { ... }
}
Expand description
Trait to be implemented by extensions to allow them to be formated as x509 v3 extensions by builder.
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.
Implementors§
impl AsExtension for CrlReason
impl AsExtension for CertificatePolicies
impl AsExtension for NameConstraints
impl AsExtension for BasicConstraints
impl AsExtension for PolicyConstraints
impl AsExtension for IssuingDistributionPoint
impl AsExtension for BaseCrlNumber
impl AsExtension for CrlDistributionPoints
impl AsExtension for CrlNumber
impl AsExtension for FreshestCrl
impl AsExtension for SignedCertificateTimestampList
Available on crate feature
sct
only.