Class KJUR.asn1.x509.OID
static object for OID
Defined in: asn1x509-1.0.js.
Constructor Attributes | Constructor Name and Description |
---|---|
static object for OID
|
Field Attributes | Field Name and Description |
---|---|
for short attribyte type name and oid (i.e.
|
|
for oid name and oid (i.e.
|
|
for caching name and DERObjectIdentifier object
|
Method Attributes | Method Name and Description |
---|---|
<static> |
KJUR.asn1.x509.OID.atype2obj(atype)
get DERObjectIdentifier by registered attribyte type name such like 'C' or 'CN'
|
<static> |
KJUR.asn1.x509.OID.name2obj(name)
get DERObjectIdentifier by registered OID name
|
Class Detail
KJUR.asn1.x509.OID()
static object for OID
- atype2oidList
- currently supports 'C', 'O', 'OU', 'ST', 'L' and 'CN' only.
- name2oidList
- currently supports 'SHA1withRSA', 'rsaEncryption' and some extension OIDs
Field Detail
{Assoc Array}
atype2oidList
for short attribyte type name and oid (i.e. 'C' and '2.5.4.6')
{Assoc Array}
name2oidList
for oid name and oid (i.e. 'keyUsage' and '2.5.29.15')
{Assoc Array}
objCache
for caching name and DERObjectIdentifier object
Method Detail
<static>
KJUR.asn1.x509.OID.atype2obj(atype)
get DERObjectIdentifier by registered attribyte type name such like 'C' or 'CN'
var asn1ObjOID = OID.atype2obj('CN');
- Parameters:
- {String} atype
- short attribute type name such like 'C' or 'CN'
<static>
KJUR.asn1.x509.OID.name2obj(name)
get DERObjectIdentifier by registered OID name
var asn1ObjOID = OID.name2obj('SHA1withRSA');
- Parameters:
- {String} name
- OID