Class Index | File Index

Classes


Class KJUR.asn1.x509.X500Name


Extends KJUR.asn1.ASN1Object.
X500Name ASN.1 structure class
Defined in: asn1x509-1.0.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
X500Name ASN.1 structure class
Fields borrowed from class KJUR.asn1.ASN1Object:
hL, hT, hTLV, hV, isModified
Method Summary
Method Attributes Method Name and Description
<static>  
KJUR.asn1.x509.X500Name.setByObject(dnObj)
set DN by associative array
<static>  
KJUR.asn1.x509.X500Name.setByString(dnStr)
set DN by string
Class Detail
KJUR.asn1.x509.X500Name(params)
X500Name ASN.1 structure class
// 1. construct with string
o = new KJUR.asn1.x509.X500Name({str: "/C=US/O=aaa/OU=bbb/CN=foo@example.com"});
// 2. construct by object
o = new KJUR.asn1.x509.X500Name({C: "US", O: "aaa", CN: "http://example.com/"});
Parameters:
{Array} params
associative array of parameters (ex. {'str': '/C=US/O=a'})
Method Detail
<static> KJUR.asn1.x509.X500Name.setByObject(dnObj)
set DN by associative array
name = new KJUR.asn1.x509.X500Name();
name.setByObject({C: "US", O: "aaa", CN="http://example.com/"1});
Parameters:
{Array} dnObj
associative array of DN (ex. {C: "US", O: "aaa"})
Since:
jsrsasign 4.9. asn1x509 1.0.13

<static> KJUR.asn1.x509.X500Name.setByString(dnStr)
set DN by string
name = new KJUR.asn1.x509.X500Name();
name.setByString("/C=US/O=aaa/OU=bbb/CN=foo@example.com");
Parameters:
{Array} dnStr
distinguished name by string (ex. /C=US/O=aaa)

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