pub enum KeyUsages {
DigitalSignature,
NonRepudiation,
KeyEncipherment,
DataEncipherment,
KeyAgreement,
KeyCertSign,
CRLSign,
EncipherOnly,
DecipherOnly,
}
Expand description
Key usage flags as defined in RFC 5280 Section 4.2.1.3.
KeyUsage ::= BIT STRING {
digitalSignature (0),
nonRepudiation (1), -- recent editions of X.509 have
-- renamed this bit to contentCommitment
keyEncipherment (2),
dataEncipherment (3),
keyAgreement (4),
keyCertSign (5),
cRLSign (6),
encipherOnly (7),
decipherOnly (8)
}
Variants§
DigitalSignature
NonRepudiation
KeyEncipherment
DataEncipherment
KeyAgreement
KeyCertSign
CRLSign
EncipherOnly
DecipherOnly
Trait Implementations§
source§impl PartialEq for KeyUsages
impl PartialEq for KeyUsages
impl Copy for KeyUsages
impl Eq for KeyUsages
impl StructuralEq for KeyUsages
impl StructuralPartialEq for KeyUsages
Auto Trait Implementations§
impl RefUnwindSafe for KeyUsages
impl Send for KeyUsages
impl Sync for KeyUsages
impl Unpin for KeyUsages
impl UnwindSafe for KeyUsages
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