pub struct AuthorityKeyIdentifier {
pub key_identifier: Option<OctetString>,
pub authority_cert_issuer: Option<Vec<GeneralName>>,
pub authority_cert_serial_number: Option<SerialNumber>,
}Expand description
AuthorityKeyIdentifier as defined in RFC 5280 Section 4.2.1.1.
AuthorityKeyIdentifier ::= SEQUENCE {
keyIdentifier [0] KeyIdentifier OPTIONAL,
authorityCertIssuer [1] GeneralNames OPTIONAL,
authorityCertSerialNumber [2] CertificateSerialNumber OPTIONAL
}
KeyIdentifier ::= OCTET STRINGFields§
§key_identifier: Option<OctetString>Trait Implementations§
Source§impl AssociatedOid for AuthorityKeyIdentifier
impl AssociatedOid for AuthorityKeyIdentifier
Source§const OID: ObjectIdentifier = ID_CE_AUTHORITY_KEY_IDENTIFIER
const OID: ObjectIdentifier = ID_CE_AUTHORITY_KEY_IDENTIFIER
The OID associated with this type.
Source§impl Clone for AuthorityKeyIdentifier
impl Clone for AuthorityKeyIdentifier
Source§fn clone(&self) -> AuthorityKeyIdentifier
fn clone(&self) -> AuthorityKeyIdentifier
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Criticality for AuthorityKeyIdentifier
impl Criticality for AuthorityKeyIdentifier
Source§impl Debug for AuthorityKeyIdentifier
impl Debug for AuthorityKeyIdentifier
Source§impl<'__der_lifetime> DecodeValue<'__der_lifetime> for AuthorityKeyIdentifier
impl<'__der_lifetime> DecodeValue<'__der_lifetime> for AuthorityKeyIdentifier
Source§impl Default for AuthorityKeyIdentifier
impl Default for AuthorityKeyIdentifier
Source§fn default() -> AuthorityKeyIdentifier
fn default() -> AuthorityKeyIdentifier
Returns the “default value” for a type. Read more
Source§impl EncodeValue for AuthorityKeyIdentifier
impl EncodeValue for AuthorityKeyIdentifier
impl Eq for AuthorityKeyIdentifier
Source§impl PartialEq for AuthorityKeyIdentifier
impl PartialEq for AuthorityKeyIdentifier
impl<'__der_lifetime> Sequence<'__der_lifetime> for AuthorityKeyIdentifier
impl StructuralPartialEq for AuthorityKeyIdentifier
Source§impl<'a> TryFrom<SubjectPublicKeyInfo<AnyRef<'a>, BitStringRef<'a>>> for AuthorityKeyIdentifier
impl<'a> TryFrom<SubjectPublicKeyInfo<AnyRef<'a>, BitStringRef<'a>>> for AuthorityKeyIdentifier
Source§fn try_from(
issuer: SubjectPublicKeyInfo<AnyRef<'a>, BitStringRef<'a>>,
) -> Result<AuthorityKeyIdentifier, <AuthorityKeyIdentifier as TryFrom<SubjectPublicKeyInfo<AnyRef<'a>, BitStringRef<'a>>>>::Error>
fn try_from( issuer: SubjectPublicKeyInfo<AnyRef<'a>, BitStringRef<'a>>, ) -> Result<AuthorityKeyIdentifier, <AuthorityKeyIdentifier as TryFrom<SubjectPublicKeyInfo<AnyRef<'a>, BitStringRef<'a>>>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for AuthorityKeyIdentifier
impl RefUnwindSafe for AuthorityKeyIdentifier
impl Send for AuthorityKeyIdentifier
impl Sync for AuthorityKeyIdentifier
impl Unpin for AuthorityKeyIdentifier
impl UnsafeUnpin for AuthorityKeyIdentifier
impl UnwindSafe for AuthorityKeyIdentifier
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IsConstructed for T
impl<T> IsConstructed for T
Source§const CONSTRUCTED: bool
const CONSTRUCTED: bool
ASN.1 constructed bit