NameAttribute
Single name attribute within a distinguished name.
RFC 5280 / X.501 call this structure an AttributeTypeAndValue.
ts
interface NameAttribute {
readonly type: NameFieldKey;
readonly value: string;
}Properties
readonlytype:NameFieldKey— Which attribute type this pair represents.readonlyvalue:string— The string value for this attribute (encoding chosen per field definition).
See also
- RFC 5280 Appendix A.1
encodeNameplaces each attribute in its own single-attribute RDN.encodeRelativeDistinguishedNamepacks several attributes into one RDN.