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 IDENTIFIERTuple Fields§
§0: Vec<ObjectIdentifier>Trait Implementations§
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§impl Criticality for ExtendedKeyUsage
impl Criticality for ExtendedKeyUsage
Source§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
impl Eq 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
impl StructuralPartialEq for ExtendedKeyUsage
Auto Trait Implementations§
impl Freeze for ExtendedKeyUsage
impl RefUnwindSafe for ExtendedKeyUsage
impl Send for ExtendedKeyUsage
impl Sync for ExtendedKeyUsage
impl Unpin for ExtendedKeyUsage
impl UnsafeUnpin 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag + 'a,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag + 'a,
Source§type Error = <T as DecodeValue<'a>>::Error
type Error = <T as DecodeValue<'a>>::Error
Type returned in the event of a decoding error.
Source§fn decode<R>(reader: &mut R) -> Result<T, <T as DecodeValue<'a>>::Error>where
R: Reader<'a>,
fn decode<R>(reader: &mut R) -> Result<T, <T as DecodeValue<'a>>::Error>where
R: Reader<'a>,
Attempt to decode this TLV message using the provided decoder. Read more
impl<T> DecodeOwned for Twhere
T: for<'a> Decode<'a>,
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 T
impl<T> Encode for T
Source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this TLV object in bytes when encoded as ASN.1 DER. Read more
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 TLV object to the provided byte slice, returning a sub-slice
containing the encoded message. Read more
Source§impl<T> IsConstructed for T
impl<T> IsConstructed for T
Source§const CONSTRUCTED: bool
const CONSTRUCTED: bool
ASN.1 constructed bit