Class Index | File Index

Classes


Class KJUR.asn1.x509.SubjectDirectoryAttributes


Extends KJUR.asn1.x509.Extension.
SubjectDirectoryAttributes ASN.1 structure class
Defined in: asn1x509-1.0.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
SubjectDirectoryAttributes ASN.1 structure class
This class provides X.509v3 SubjectDirectoryAttributes extension defined in RFC 3739 Qualified Certificate Profile section 3.3.2.
Fields borrowed from class KJUR.asn1.ASN1Object:
hL, hT, hTLV, hV, isModified, params
Methods borrowed from class KJUR.asn1.ASN1Object:
getEncodedHex, getLengthHexFromValue, getValueHex, tohex
Class Detail
KJUR.asn1.x509.SubjectDirectoryAttributes(params)
SubjectDirectoryAttributes ASN.1 structure class
This class provides X.509v3 SubjectDirectoryAttributes extension defined in RFC 3739 Qualified Certificate Profile section 3.3.2.
SubjectDirectoryAttributes ::= Attributes
Attributes ::= SEQUENCE SIZE (1..MAX) OF Attribute
Attribute ::= SEQUENCE {
  type AttributeType 
  values SET OF AttributeValue }
AttributeType ::= OBJECT IDENTIFIER
AttributeValue ::= ANY DEFINED BY AttributeType
Value of member "array" is an array which as following associative arrays as elements:
  • attr: OID name or value of attribute type (ex. "gender" or "1.2.3.4")
  • str: attribute value of pre defined types (See example for registered attribute types)
  • array: array of ASN.1 parameters as attribute value (See KJUR.asn1.ASN1Util#newObject)

NOTE: From jsrsasign 10.8.4, member "array in array" supported for an arbitrary attribute value.
e1 = new KJUR.asn1.x509.SubjectDirectoryAttributes({
  extname: "subjectDirectoryAttributes",
  array: [
    { attr: "dateOfBirth", str: "19701231230000Z" },
    { attr: "placeOfBirth", str: "Tokyo" },
    { attr: "gender", str: "F" },
    { attr: "countryOfCitizenship", str: "JP" },
    { attr: "countryOfResidence", str: "JP" },
    { attr: "1.2.3.4.5", array: [{prnstr: {str: "aaa"}}] }
  ]
});
Parameters:
{Array} params
associative array of parameters
Since:
jsrsasign 10.1.9 asn1x509 2.1.7
See:

© 2012-2023 Kenji Urushima, All rights reserved
Documentation generated by JsDoc Toolkit 2.4.0