pub struct KeyUsage<'a> { /* private fields */ }Expand description
The purposes a key may be used for, as the bits the certificate set.
Implementations§
Source§impl<'a> KeyUsage<'a>
impl<'a> KeyUsage<'a>
Sourcepub fn digital_signature(self) -> bool
pub fn digital_signature(self) -> bool
Signing data.
Sourcepub fn content_commitment(self) -> bool
pub fn content_commitment(self) -> bool
Signing in a way the signer is not meant to be able to deny later, which is the bit a signature under the Regulation rests on.
Sourcepub fn key_encipherment(self) -> bool
pub fn key_encipherment(self) -> bool
Enciphering a key.
Sourcepub fn data_encipherment(self) -> bool
pub fn data_encipherment(self) -> bool
Enciphering data directly.
Sourcepub fn key_agreement(self) -> bool
pub fn key_agreement(self) -> bool
Agreeing a key.
Sourcepub fn key_cert_sign(self) -> bool
pub fn key_cert_sign(self) -> bool
Signing certificates, which is what makes a certification authority one.
Sourcepub fn encipher_only(self) -> bool
pub fn encipher_only(self) -> bool
Enciphering only, which means something only alongside key agreement.
Sourcepub fn decipher_only(self) -> bool
pub fn decipher_only(self) -> bool
Deciphering only, on the same terms.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for KeyUsage<'a>
impl<'a> RefUnwindSafe for KeyUsage<'a>
impl<'a> Send for KeyUsage<'a>
impl<'a> Sync for KeyUsage<'a>
impl<'a> Unpin for KeyUsage<'a>
impl<'a> UnsafeUnpin for KeyUsage<'a>
impl<'a> UnwindSafe for KeyUsage<'a>
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