pub enum CertUsage {
NoRestrictions,
DigitalSignature,
NonRepudiation,
KeyEncipherment,
DataEncipherment,
KeyAgreement,
CertificateSign,
CrlSign,
EncipherOnly,
DecipherOnly,
}Expand description
Indicates if the certificate key is allowed for a particular usage
Variants§
NoRestrictions
No particular usage restrictions
DigitalSignature
Allowed for digital signature
NonRepudiation
Allowed for “non-repudiation” (whatever that means)
KeyEncipherment
Allowed for enciphering symmetric keys
DataEncipherment
Allowed for enciphering plaintext messages
KeyAgreement
Allowed for key agreement
CertificateSign
Allowed for signing certificates
CrlSign
Allowed for signing CRLs
EncipherOnly
Allowed only for encryption
DecipherOnly
Allowed only for decryption
Trait Implementations§
Source§impl From<CertUsage> for X509KeyConstraints
impl From<CertUsage> for X509KeyConstraints
Source§fn from(err: CertUsage) -> X509KeyConstraints
fn from(err: CertUsage) -> X509KeyConstraints
Converts to this type from the input type.
Source§impl From<X509KeyConstraints> for CertUsage
impl From<X509KeyConstraints> for CertUsage
Source§fn from(err: X509KeyConstraints) -> CertUsage
fn from(err: X509KeyConstraints) -> CertUsage
Converts to this type from the input type.
impl Copy for CertUsage
Auto Trait Implementations§
impl Freeze for CertUsage
impl RefUnwindSafe for CertUsage
impl Send for CertUsage
impl Sync for CertUsage
impl Unpin for CertUsage
impl UnwindSafe for CertUsage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more