Class Index | File Index

Classes


Class KJUR.asn1.DERObjectIdentifier


Extends KJUR.asn1.ASN1Object.
class for ASN.1 DER ObjectIdentifier
Defined in: asn1-1.0.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
class for ASN.1 DER ObjectIdentifier
As for argument 'params' for constructor, you can specify one of following properties:
  • oid - specify initial ASN.1 value(V) by a oid string (ex.
Fields borrowed from class KJUR.asn1.ASN1Object:
hL, hT, hTLV, hV, isModified, params
Method Summary
Method Attributes Method Name and Description
 
setValueHex(newHexString)
set value by a hexadecimal string
 
setValueName(oidName)
set value by a OID name OID name shall be defined in 'KJUR.asn1.x509.OID.name2oidList'.
 
setValueOidString(oidString)
set value by a OID string
Methods borrowed from class KJUR.asn1.ASN1Object:
getEncodedHex, getLengthHexFromValue, getValueHex, tohex
Class Detail
KJUR.asn1.DERObjectIdentifier(JSON)
class for ASN.1 DER ObjectIdentifier
As for argument 'params' for constructor, you can specify one of following properties:
  • oid - specify initial ASN.1 value(V) by a oid string (ex. 2.5.4.13)
  • hex - specify initial ASN.1 value(V) by a hexadecimal string
NOTE: 'params' can be omitted.
new DERObjectIdentifier({"name": "sha1"})
new DERObjectIdentifier({"oid": "1.2.3.4"})
new DERObjectIdentifier({"hex": "2d..."})
new DERObjectIdentifier("1.2.3.4")
new DERObjectIdentifier("SHA1withRSA")
Parameters:
{Object} JSON
object or string of parameters (ex. {'oid': '2.5.4.5'})
See:
oidtohex
Method Detail
setValueHex(newHexString)
set value by a hexadecimal string
Parameters:
{String} newHexString
hexadecimal value of OID bytes

setValueName(oidName)
set value by a OID name OID name shall be defined in 'KJUR.asn1.x509.OID.name2oidList'. Otherwise raise error.
o = new KJUR.asn1.DERObjectIdentifier();
o.setValueName("serverAuth");
Parameters:
{String} oidName
OID name (ex. 'serverAuth')
Since:
1.0.1

setValueOidString(oidString)
set value by a OID string
o = new KJUR.asn1.DERObjectIdentifier();
o.setValueOidString("2.5.4.13");
Parameters:
{String} oidString
OID string (ex. 2.5.4.13)

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