ParsedNameAttribute
A single decoded name attribute from an X.501 RelativeDistinguishedName.
RFC 5280 / X.501 call this structure an AttributeTypeAndValue.
ts
interface ParsedNameAttribute {
readonly oid: string;
readonly key?: NameFieldKey;
readonly valueTag: number;
readonly value: string;
}Properties
readonlyoid:string— Dotted-decimal OID of the attribute type (e.g."2.5.4.3"for CN).readonlykey?:NameFieldKey— Friendly key when the OID maps to a well-known field (CN, O, etc.).readonlyvalueTag:number— ASN.1 tag of the value encoding (UTF8String = 0x0c, PrintableString = 0x13, etc.).readonlyvalue:string— Decoded string content of the attribute value.
See also