Struct x509_cert::ext::pkix::AuthorityKeyIdentifier
source · pub struct AuthorityKeyIdentifier {
pub key_identifier: Option<OctetString>,
pub authority_cert_issuer: Option<GeneralNames>,
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 STRING
Fields§
§key_identifier: Option<OctetString>
Trait Implementations§
source§impl AsExtension for AuthorityKeyIdentifier
impl AsExtension for AuthorityKeyIdentifier
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 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 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<'__der_lifetime> EncodeValue for AuthorityKeyIdentifier
impl<'__der_lifetime> EncodeValue for AuthorityKeyIdentifier
source§impl PartialEq for AuthorityKeyIdentifier
impl PartialEq for AuthorityKeyIdentifier
source§fn eq(&self, other: &AuthorityKeyIdentifier) -> bool
fn eq(&self, other: &AuthorityKeyIdentifier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> TryFrom<SubjectPublicKeyInfo<AnyRef<'a>, BitStringRef<'a>>> for AuthorityKeyIdentifier
Available on crate feature builder
only.
impl<'a> TryFrom<SubjectPublicKeyInfo<AnyRef<'a>, BitStringRef<'a>>> for AuthorityKeyIdentifier
Available on crate feature
builder
only.impl Eq for AuthorityKeyIdentifier
impl<'__der_lifetime> Sequence<'__der_lifetime> for AuthorityKeyIdentifier
impl StructuralEq for AuthorityKeyIdentifier
impl StructuralPartialEq for AuthorityKeyIdentifier
Auto Trait Implementations§
impl RefUnwindSafe for AuthorityKeyIdentifier
impl Send for AuthorityKeyIdentifier
impl Sync for AuthorityKeyIdentifier
impl Unpin 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<'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.