[−][src]Struct openssl::x509::extension::ExtendedKeyUsage
An extension consisting of a list of usages indicating purposes for which the certificate public key can be used for.
Methods
impl ExtendedKeyUsage
[src]
impl ExtendedKeyUsage
pub fn new() -> ExtendedKeyUsage
[src]
pub fn new() -> ExtendedKeyUsage
Construct a new ExtendedKeyUsage
extension.
pub fn critical(&mut self) -> &mut ExtendedKeyUsage
[src]
pub fn critical(&mut self) -> &mut ExtendedKeyUsage
Sets the critical
flag to true
. The extension will be critical.
pub fn server_auth(&mut self) -> &mut ExtendedKeyUsage
[src]
pub fn server_auth(&mut self) -> &mut ExtendedKeyUsage
Sets the serverAuth
flag to true
.
pub fn client_auth(&mut self) -> &mut ExtendedKeyUsage
[src]
pub fn client_auth(&mut self) -> &mut ExtendedKeyUsage
Sets the clientAuth
flag to true
.
pub fn code_signing(&mut self) -> &mut ExtendedKeyUsage
[src]
pub fn code_signing(&mut self) -> &mut ExtendedKeyUsage
Sets the codeSigning
flag to true
.
pub fn time_stamping(&mut self) -> &mut ExtendedKeyUsage
[src]
pub fn time_stamping(&mut self) -> &mut ExtendedKeyUsage
Sets the timeStamping
flag to true
.
pub fn ms_code_ind(&mut self) -> &mut ExtendedKeyUsage
[src]
pub fn ms_code_ind(&mut self) -> &mut ExtendedKeyUsage
Sets the msCodeInd
flag to true
.
pub fn ms_code_com(&mut self) -> &mut ExtendedKeyUsage
[src]
pub fn ms_code_com(&mut self) -> &mut ExtendedKeyUsage
Sets the msCodeCom
flag to true
.
pub fn ms_ctl_sign(&mut self) -> &mut ExtendedKeyUsage
[src]
pub fn ms_ctl_sign(&mut self) -> &mut ExtendedKeyUsage
Sets the msCTLSign
flag to true
.
pub fn ms_sgc(&mut self) -> &mut ExtendedKeyUsage
[src]
pub fn ms_sgc(&mut self) -> &mut ExtendedKeyUsage
Sets the msSGC
flag to true
.
pub fn ms_efs(&mut self) -> &mut ExtendedKeyUsage
[src]
pub fn ms_efs(&mut self) -> &mut ExtendedKeyUsage
Sets the msEFS
flag to true
.
pub fn ns_sgc(&mut self) -> &mut ExtendedKeyUsage
[src]
pub fn ns_sgc(&mut self) -> &mut ExtendedKeyUsage
Sets the nsSGC
flag to true
.
pub fn other(&mut self, other: &str) -> &mut ExtendedKeyUsage
[src]
pub fn other(&mut self, other: &str) -> &mut ExtendedKeyUsage
Sets a flag not already defined.
pub fn build(&self) -> Result<X509Extension, ErrorStack>
[src]
pub fn build(&self) -> Result<X509Extension, ErrorStack>
Return the ExtendedKeyUsage
extension as an X509Extension
.
Auto Trait Implementations
impl Send for ExtendedKeyUsage
impl Send for ExtendedKeyUsage
impl Sync for ExtendedKeyUsage
impl Sync for ExtendedKeyUsage
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more