pub struct SubjectKeyIdentifier(pub OctetString);Expand description
SubjectKeyIdentifier as defined in RFC 5280 Section 4.2.1.2.
SubjectKeyIdentifier ::= KeyIdentifierTuple Fields§
§0: OctetStringTrait Implementations§
Source§impl AsExtension for SubjectKeyIdentifier
impl AsExtension for SubjectKeyIdentifier
Source§impl<'a> AsMut<OctetString> for SubjectKeyIdentifier
impl<'a> AsMut<OctetString> for SubjectKeyIdentifier
Source§impl<'a> AsRef<OctetString> for SubjectKeyIdentifier
impl<'a> AsRef<OctetString> for SubjectKeyIdentifier
Source§impl AssociatedOid for SubjectKeyIdentifier
impl AssociatedOid for SubjectKeyIdentifier
Source§const OID: ObjectIdentifier = ID_CE_SUBJECT_KEY_IDENTIFIER
const OID: ObjectIdentifier = ID_CE_SUBJECT_KEY_IDENTIFIER
The OID associated with this type.
Source§impl Clone for SubjectKeyIdentifier
impl Clone for SubjectKeyIdentifier
Source§fn clone(&self) -> SubjectKeyIdentifier
fn clone(&self) -> SubjectKeyIdentifier
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 Debug for SubjectKeyIdentifier
impl Debug for SubjectKeyIdentifier
Source§impl<'a> DecodeValue<'a> for SubjectKeyIdentifier
impl<'a> DecodeValue<'a> for SubjectKeyIdentifier
Source§fn decode_value<R: Reader<'a>>(decoder: &mut R, header: Header) -> Result<Self>
fn decode_value<R: Reader<'a>>(decoder: &mut R, header: Header) -> Result<Self>
Attempt to decode this message using the provided [
Reader].Source§impl<'a> EncodeValue for SubjectKeyIdentifier
impl<'a> EncodeValue for SubjectKeyIdentifier
Source§impl<'a> FixedTag for SubjectKeyIdentifier
impl<'a> FixedTag for SubjectKeyIdentifier
Source§impl<'a> From<OctetString> for SubjectKeyIdentifier
impl<'a> From<OctetString> for SubjectKeyIdentifier
Source§impl<'a> From<SubjectKeyIdentifier> for OctetString
impl<'a> From<SubjectKeyIdentifier> for OctetString
Source§fn from(value: SubjectKeyIdentifier) -> Self
fn from(value: SubjectKeyIdentifier) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SubjectKeyIdentifier
impl PartialEq for SubjectKeyIdentifier
Source§fn eq(&self, other: &SubjectKeyIdentifier) -> bool
fn eq(&self, other: &SubjectKeyIdentifier) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> TryFrom<SubjectPublicKeyInfo<AnyRef<'a>, BitStringRef<'a>>> for SubjectKeyIdentifier
impl<'a> TryFrom<SubjectPublicKeyInfo<AnyRef<'a>, BitStringRef<'a>>> for SubjectKeyIdentifier
Source§impl<'a> ValueOrd for SubjectKeyIdentifier
impl<'a> ValueOrd for SubjectKeyIdentifier
impl Eq for SubjectKeyIdentifier
impl StructuralPartialEq for SubjectKeyIdentifier
Auto Trait Implementations§
impl Freeze for SubjectKeyIdentifier
impl RefUnwindSafe for SubjectKeyIdentifier
impl Send for SubjectKeyIdentifier
impl Sync for SubjectKeyIdentifier
impl Unpin for SubjectKeyIdentifier
impl UnsafeUnpin for SubjectKeyIdentifier
impl UnwindSafe for SubjectKeyIdentifier
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
§impl<'a, T> Choice<'a> for Twhere
T: Decode<'a> + FixedTag,
impl<'a, T> Choice<'a> for Twhere
T: Decode<'a> + FixedTag,
§fn can_decode(tag: Tag) -> bool
fn can_decode(tag: Tag) -> bool
Is the provided [
Tag] decodable as a variant of this CHOICE?Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
§impl<T> DerOrd for Twhere
T: EncodeValue + ValueOrd + Tagged,
impl<T> DerOrd for Twhere
T: EncodeValue + ValueOrd + Tagged,
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.
§impl<T> Encode for Twhere
T: EncodeValue + Tagged,
impl<T> Encode for Twhere
T: EncodeValue + Tagged,
§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.
§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].
§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.
§fn encode_to_vec(&self, buf: &mut Vec<u8>) -> Result<Length, Error>
fn encode_to_vec(&self, buf: &mut Vec<u8>) -> Result<Length, Error>
Encode this message as ASN.1 DER, appending it to the provided
byte vector.