Struct openssl::x509::extension::KeyUsage [−][src]
pub struct KeyUsage { /* fields omitted */ }
An extension consisting of a list of names of the permitted key usages.
Methods
impl KeyUsage
[src]
impl KeyUsage
pub fn new() -> KeyUsage
[src]
pub fn new() -> KeyUsage
Construct a new KeyUsage
extension.
pub fn critical(&mut self) -> &mut KeyUsage
[src]
pub fn critical(&mut self) -> &mut KeyUsage
Sets the critical
flag to true
. The extension will be critical.
pub fn digital_signature(&mut self) -> &mut KeyUsage
[src]
pub fn digital_signature(&mut self) -> &mut KeyUsage
Sets the digitalSignature
flag to true
.
pub fn non_repudiation(&mut self) -> &mut KeyUsage
[src]
pub fn non_repudiation(&mut self) -> &mut KeyUsage
Sets the nonRepudiation
flag to true
.
pub fn key_encipherment(&mut self) -> &mut KeyUsage
[src]
pub fn key_encipherment(&mut self) -> &mut KeyUsage
Sets the keyEncipherment
flag to true
.
pub fn data_encipherment(&mut self) -> &mut KeyUsage
[src]
pub fn data_encipherment(&mut self) -> &mut KeyUsage
Sets the dataEncipherment
flag to true
.
pub fn key_agreement(&mut self) -> &mut KeyUsage
[src]
pub fn key_agreement(&mut self) -> &mut KeyUsage
Sets the keyAgreement
flag to true
.
pub fn key_cert_sign(&mut self) -> &mut KeyUsage
[src]
pub fn key_cert_sign(&mut self) -> &mut KeyUsage
Sets the keyCertSign
flag to true
.
pub fn crl_sign(&mut self) -> &mut KeyUsage
[src]
pub fn crl_sign(&mut self) -> &mut KeyUsage
Sets the cRLSign
flag to true
.
pub fn encipher_only(&mut self) -> &mut KeyUsage
[src]
pub fn encipher_only(&mut self) -> &mut KeyUsage
Sets the encipherOnly
flag to true
.
pub fn decipher_only(&mut self) -> &mut KeyUsage
[src]
pub fn decipher_only(&mut self) -> &mut KeyUsage
Sets the decipherOnly
flag to true
.
pub fn build(&self) -> Result<X509Extension, ErrorStack>
[src]
pub fn build(&self) -> Result<X509Extension, ErrorStack>
Return the KeyUsage
extension as an X509Extension
.