Class KJUR.asn1.DERObjectIdentifier
Extends
KJUR.asn1.ASN1Object.
class for ASN.1 DER ObjectIdentifier
Defined in: asn1-1.0.js.
Constructor Attributes | Constructor Name and Description |
---|---|
KJUR.asn1.DERObjectIdentifier(params)
class for ASN.1 DER ObjectIdentifier
As for argument 'params' for constructor, you can specify one of following properties:
|
- Fields borrowed from class KJUR.asn1.ASN1Object:
- hL, hT, hTLV, hV, isModified
Method Attributes | Method Name and Description |
---|---|
<static> |
KJUR.asn1.DERObjectIdentifier.setValueHex(newHexString)
set value by a hexadecimal string
|
<static> |
KJUR.asn1.DERObjectIdentifier.setValueName(oidName)
set value by a OID name
OID name shall be defined in 'KJUR.asn1.x509.OID.name2oidList'.
|
<static> |
KJUR.asn1.DERObjectIdentifier.setValueOidString(oidString)
set value by a OID string
|
Class Detail
KJUR.asn1.DERObjectIdentifier(params)
class for ASN.1 DER ObjectIdentifier
As for argument 'params' for constructor, you can specify one of following properties:
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
- Parameters:
- {Array} params
- associative array of parameters (ex. {'oid': '2.5.4.5'})
Method Detail
<static>
KJUR.asn1.DERObjectIdentifier.setValueHex(newHexString)
set value by a hexadecimal string
- Parameters:
- {String} newHexString
- hexadecimal value of OID bytes
<static>
KJUR.asn1.DERObjectIdentifier.setValueName(oidName)
set value by a OID name
OID name shall be defined in 'KJUR.asn1.x509.OID.name2oidList'.
Otherwise raise error.
- Parameters:
- {String} oidName
- OID name (ex. 'serverAuth')
- Since:
- 1.0.1
<static>
KJUR.asn1.DERObjectIdentifier.setValueOidString(oidString)
set value by a OID string
- Parameters:
- {String} oidString
- OID string (ex. 2.5.4.13)