pub struct SubjectAltName(pub Vec<GeneralName>);Expand description
SubjectAltName as defined in RFC 5280 Section 4.2.1.6.
SubjectAltName ::= GeneralNamesTuple Fields§
§0: Vec<GeneralName>Trait Implementations§
Source§impl AsExtension for SubjectAltName
impl AsExtension for SubjectAltName
Source§fn critical(&self, subject: &RdnSequence, _extensions: &[Extension]) -> bool
fn critical(&self, subject: &RdnSequence, _extensions: &[Extension]) -> bool
Should the extension be marked critical
Source§fn to_extension(
&self,
subject: &RdnSequence,
extensions: &[Extension],
) -> Result<Extension, Error>
fn to_extension( &self, subject: &RdnSequence, extensions: &[Extension], ) -> Result<Extension, Error>
Returns the Extension with the content encoded.
Source§impl<'a> AsMut<Vec<GeneralName>> for SubjectAltName
impl<'a> AsMut<Vec<GeneralName>> for SubjectAltName
Source§fn as_mut(&mut self) -> &mut Vec<GeneralName>
fn as_mut(&mut self) -> &mut Vec<GeneralName>
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl<'a> AsRef<Vec<GeneralName>> for SubjectAltName
impl<'a> AsRef<Vec<GeneralName>> for SubjectAltName
Source§fn as_ref(&self) -> &Vec<GeneralName>
fn as_ref(&self) -> &Vec<GeneralName>
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AssociatedOid for SubjectAltName
impl AssociatedOid for SubjectAltName
Source§const OID: ObjectIdentifier = ID_CE_SUBJECT_ALT_NAME
const OID: ObjectIdentifier = ID_CE_SUBJECT_ALT_NAME
The OID associated with this type.
Source§impl Clone for SubjectAltName
impl Clone for SubjectAltName
Source§fn clone(&self) -> SubjectAltName
fn clone(&self) -> SubjectAltName
Returns a duplicate 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 SubjectAltName
impl Debug for SubjectAltName
Source§impl<'a> DecodeValue<'a> for SubjectAltName
impl<'a> DecodeValue<'a> for SubjectAltName
Source§fn decode_value<R>(
decoder: &mut R,
header: Header,
) -> Result<SubjectAltName, Error>where
R: Reader<'a>,
fn decode_value<R>(
decoder: &mut R,
header: Header,
) -> Result<SubjectAltName, Error>where
R: Reader<'a>,
Attempt to decode this message using the provided
Reader.Source§impl Default for SubjectAltName
impl Default for SubjectAltName
Source§fn default() -> SubjectAltName
fn default() -> SubjectAltName
Returns the “default value” for a type. Read more
Source§impl<'a> EncodeValue for SubjectAltName
impl<'a> EncodeValue for SubjectAltName
Source§impl<'a> FixedTag for SubjectAltName
impl<'a> FixedTag for SubjectAltName
Source§impl<'a> From<SubjectAltName> for Vec<GeneralName>
impl<'a> From<SubjectAltName> for Vec<GeneralName>
Source§fn from(value: SubjectAltName) -> Vec<GeneralName>
fn from(value: SubjectAltName) -> Vec<GeneralName>
Converts to this type from the input type.
Source§impl<'a> From<Vec<GeneralName>> for SubjectAltName
impl<'a> From<Vec<GeneralName>> for SubjectAltName
Source§fn from(value: Vec<GeneralName>) -> SubjectAltName
fn from(value: Vec<GeneralName>) -> SubjectAltName
Converts to this type from the input type.
Source§impl PartialEq for SubjectAltName
impl PartialEq for SubjectAltName
Source§impl<'a> ValueOrd for SubjectAltName
impl<'a> ValueOrd for SubjectAltName
impl Eq for SubjectAltName
impl StructuralPartialEq for SubjectAltName
Auto Trait Implementations§
impl Freeze for SubjectAltName
impl RefUnwindSafe for SubjectAltName
impl Send for SubjectAltName
impl Sync for SubjectAltName
impl Unpin for SubjectAltName
impl UnsafeUnpin for SubjectAltName
impl UnwindSafe for SubjectAltName
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,
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.