#[non_exhaustive]pub enum DnAttribute {
Show 24 variants
CommonName(String),
Surname(String),
SerialNumber(String),
CountryName(String),
LocalityName(String),
StateOrProvinceName(String),
OrganizationName(String),
OrganizationalUnitName(String),
Title(String),
Name(String),
GivenName(String),
Initials(String),
GenerationQualifier(String),
DnQualifier(String),
Pseudonym(String),
DomainComponent(String),
NodeId(u64),
IcacId(u64),
RcacId(u64),
FabricId(u64),
CaseAuthenticatedTag(u32),
VendorId(u16),
ProductId(u16),
Other {
tag: u8,
value: DnAttributeValue,
},
}Expand description
A single distinguished-name attribute.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CommonName(String)
X.509 CommonName (CN) attribute — UTF-8 string.
Surname(String)
X.509 Surname (SN) attribute — UTF-8 string.
SerialNumber(String)
X.509 SerialNumber attribute — UTF-8 string.
CountryName(String)
X.509 CountryName (C) attribute — UTF-8 string (2-character ISO 3166).
LocalityName(String)
X.509 LocalityName (L) attribute — UTF-8 string.
StateOrProvinceName(String)
X.509 StateOrProvinceName (ST) attribute — UTF-8 string.
OrganizationName(String)
X.509 OrganizationName (O) attribute — UTF-8 string.
OrganizationalUnitName(String)
X.509 OrganizationalUnitName (OU) attribute — UTF-8 string.
Title(String)
X.509 Title attribute — UTF-8 string.
Name(String)
X.509 Name attribute — UTF-8 string.
GivenName(String)
X.509 GivenName attribute — UTF-8 string.
Initials(String)
X.509 Initials attribute — UTF-8 string.
GenerationQualifier(String)
X.509 GenerationQualifier attribute — UTF-8 string.
DnQualifier(String)
X.509 DnQualifier attribute — UTF-8 string.
Pseudonym(String)
X.509 Pseudonym attribute — UTF-8 string.
DomainComponent(String)
X.509 DomainComponent (DC) attribute — UTF-8 string.
NodeId(u64)
Matter Node Identifier (operational identity), spec §6.5.6 tag 17.
IcacId(u64)
Matter Intermediate CA Identifier, spec §6.5.6 tag 19.
RcacId(u64)
Matter Root CA Identifier, spec §6.5.6 tag 20.
FabricId(u64)
Matter Fabric Identifier, spec §6.5.6 tag 21.
CaseAuthenticatedTag(u32)
Matter CASE Authenticated Tag (NOC-CAT), spec §6.5.6 tag 22.
VendorId(u16)
Matter Vendor Identifier (attestation certificates), CSA OID
1.3.6.1.4.1.37244.2.1.
Used in DAC/PAI/PAA X.509 attestation certificate DNs (Matter
§6.5.6.1), where the value is a 4-character UPPERCASE-hex
PrintableString (e.g. 0xFFF1 → "FFF1"). This is an X.509-only
attribute: it has no Matter operational-TLV cert encoding (those
certs use the node/fabric/icac/rcac/case-tag identifiers above).
ProductId(u16)
Matter Product Identifier (attestation certificates), CSA OID
1.3.6.1.4.1.37244.2.2.
Used in DAC/PAI X.509 attestation certificate DNs (Matter
§6.5.6.1), where the value is a 4-character UPPERCASE-hex
PrintableString (e.g. 0x8001 → "8001"). Like
DnAttribute::VendorId, this is an X.509-only attribute with no
Matter operational-TLV cert encoding.
Other
Forward-compatibility fallback for spec-defined attributes the typed variants above don’t enumerate yet (e.g., tag 18 matter-firmware-signing-id, tags 23-26 vid/pid variants).
Fields
value: DnAttributeValueValue decoded from the wire with its TLV type preserved.
Trait Implementations§
Source§impl Clone for DnAttribute
impl Clone for DnAttribute
Source§fn clone(&self) -> DnAttribute
fn clone(&self) -> DnAttribute
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more