Struct x509_cert::ext::pkix::ExtendedKeyUsage
source · pub struct ExtendedKeyUsage(pub Vec<ObjectIdentifier>);
Expand description
ExtKeyUsageSyntax as defined in RFC 5280 Section 4.2.1.12.
Many extended key usage values include:
PKIX_CE_ANYEXTENDEDKEYUSAGE
,PKIX_KP_SERVERAUTH
,PKIX_KP_CLIENTAUTH
,PKIX_KP_CODESIGNING
,PKIX_KP_EMAILPROTECTION
,PKIX_KP_TIMESTAMPING
,
ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId
KeyPurposeId ::= OBJECT IDENTIFIER
Tuple Fields§
§0: Vec<ObjectIdentifier>
Trait Implementations§
source§impl AsExtension for ExtendedKeyUsage
impl AsExtension for ExtendedKeyUsage
source§impl<'a> AsMut<Vec<ObjectIdentifier>> for ExtendedKeyUsage
impl<'a> AsMut<Vec<ObjectIdentifier>> for ExtendedKeyUsage
source§fn as_mut(&mut self) -> &mut Vec<ObjectIdentifier>
fn as_mut(&mut self) -> &mut Vec<ObjectIdentifier>
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl<'a> AsRef<Vec<ObjectIdentifier>> for ExtendedKeyUsage
impl<'a> AsRef<Vec<ObjectIdentifier>> for ExtendedKeyUsage
source§fn as_ref(&self) -> &Vec<ObjectIdentifier>
fn as_ref(&self) -> &Vec<ObjectIdentifier>
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AssociatedOid for ExtendedKeyUsage
impl AssociatedOid for ExtendedKeyUsage
source§const OID: ObjectIdentifier = ID_CE_EXT_KEY_USAGE
const OID: ObjectIdentifier = ID_CE_EXT_KEY_USAGE
The OID associated with this type.
source§impl Clone for ExtendedKeyUsage
impl Clone for ExtendedKeyUsage
source§fn clone(&self) -> ExtendedKeyUsage
fn clone(&self) -> ExtendedKeyUsage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExtendedKeyUsage
impl Debug for ExtendedKeyUsage
source§impl<'a> DecodeValue<'a> for ExtendedKeyUsage
impl<'a> DecodeValue<'a> for ExtendedKeyUsage
source§impl<'a> EncodeValue for ExtendedKeyUsage
impl<'a> EncodeValue for ExtendedKeyUsage
source§impl<'a> FixedTag for ExtendedKeyUsage
impl<'a> FixedTag for ExtendedKeyUsage
source§impl<'a> From<ExtendedKeyUsage> for Vec<ObjectIdentifier>
impl<'a> From<ExtendedKeyUsage> for Vec<ObjectIdentifier>
source§fn from(value: ExtendedKeyUsage) -> Self
fn from(value: ExtendedKeyUsage) -> Self
Converts to this type from the input type.
source§impl<'a> From<Vec<ObjectIdentifier>> for ExtendedKeyUsage
impl<'a> From<Vec<ObjectIdentifier>> for ExtendedKeyUsage
source§fn from(value: Vec<ObjectIdentifier>) -> Self
fn from(value: Vec<ObjectIdentifier>) -> Self
Converts to this type from the input type.
source§impl PartialEq for ExtendedKeyUsage
impl PartialEq for ExtendedKeyUsage
source§fn eq(&self, other: &ExtendedKeyUsage) -> bool
fn eq(&self, other: &ExtendedKeyUsage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> ValueOrd for ExtendedKeyUsage
impl<'a> ValueOrd for ExtendedKeyUsage
impl Eq for ExtendedKeyUsage
impl StructuralEq for ExtendedKeyUsage
impl StructuralPartialEq for ExtendedKeyUsage
Auto Trait Implementations§
impl RefUnwindSafe for ExtendedKeyUsage
impl Send for ExtendedKeyUsage
impl Sync for ExtendedKeyUsage
impl Unpin for ExtendedKeyUsage
impl UnwindSafe for ExtendedKeyUsage
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
source§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
source§impl<T> DynAssociatedOid for Twhere
T: AssociatedOid,
impl<T> DynAssociatedOid for Twhere
T: AssociatedOid,
source§fn oid(&self) -> ObjectIdentifier
fn oid(&self) -> ObjectIdentifier
Get the OID associated with this value.
source§impl<T> Encode for Twhere
T: EncodeValue + Tagged,
impl<T> Encode for Twhere
T: EncodeValue + Tagged,
source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this value in bytes when encoded as ASN.1 DER.
source§fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value as ASN.1 DER using the provided Writer
.
source§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
Encode this value to the provided byte slice, returning a sub-slice
containing the encoded message.