Skip to content

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

  • readonly oid: string — Dotted-decimal OID of the attribute type (e.g. "2.5.4.3" for CN).
  • readonly key?: NameFieldKey — Friendly key when the OID maps to a well-known field (CN, O, etc.).
  • readonly valueTag: number — ASN.1 tag of the value encoding (UTF8String = 0x0c, PrintableString = 0x13, etc.).
  • readonly value: string — Decoded string content of the attribute value.

See also

Released under the MIT License.