WebCrypto GOST Class: Name

GostASN1. Name

Constructor

new Name()

X.501 type Name The Name describes a hierarchical name composed of attributes, such as country name, and corresponding values, such as US. The type of the component AttributeValue is determined by the AttributeType; in general it will be a DirectoryString. The DirectoryString type is defined as a choice of PrintableString, TeletexString, BMPString, UTF8String, and UniversalString. The UTF8String encoding [RFC 2279] is the preferred encoding, and all certificates issued after December 31, 2003 MUST use the UTF8String encoding of DirectoryString. Standard sets of attributes have been defined in the X.500 series of specifications [X.520]. Implementations of this specification MUST be prepared to receive the following standard attribute types in issuer and subject (section 4.1.2.6) names:
  • country,
  • organization,
  • organizational-unit,
  • distinguished name qualifier,
  • state or province name,
  • common name (e.g., "Susan Housley"), and
  • serial number.
In addition, implementations of this specification SHOULD be prepared to receive the following standard attribute types in issuer and subject names:
  • locality,
  • title,
  • surname,
  • given name,
  • initials,
  • pseudonym, and
  • generation qualifier (e.g., "Jr.", "3rd", or "IV").
The syntax for type Name:
 Name ::= CHOICE {
   rdnSequence RDNSequence }

 RDNSequence ::= SEQUENCE OF RelativeDistinguishedName

 RelativeDistinguishedName ::=
   SET OF AttributeTypeAndValue

 AttributeTypeAndValue ::= SEQUENCE {
   type     AttributeType,
   value    AttributeValue }

 AttributeType ::= OBJECT IDENTIFIER

 AttributeValue ::= ANY DEFINED BY AttributeType

 DirectoryString ::= CHOICE {
       teletexString           TeletexString (SIZE (1..MAX)),
       printableString         PrintableString (SIZE (1..MAX)),
       universalString         UniversalString (SIZE (1..MAX)),
       utf8String              UTF8String (SIZE (1..MAX)),
       bmpString               BMPString (SIZE (1..MAX)) }
 
Source: