Class KJUR.asn1.DERAbstractString
Extends
KJUR.asn1.ASN1Object.
base class for ASN.1 DER string classes
Defined in: asn1-1.0.js.
Constructor Attributes | Constructor Name and Description |
---|---|
KJUR.asn1.DERAbstractString(params)
base class for ASN.1 DER string classes
As for argument 'params' for constructor, you can specify one of following properties:
|
Field Attributes | Field Name and Description |
---|---|
internal string of value
|
- Fields borrowed from class KJUR.asn1.ASN1Object:
- hL, hT, hTLV, hV, isModified, params
Method Attributes | Method Name and Description |
---|---|
get string value of this string object
|
|
setString(newS)
set value by a string
This method set value by string.
|
|
setStringHex(newHexString)
set value by a hexadecimal string
|
- Methods borrowed from class KJUR.asn1.ASN1Object:
- getEncodedHex, getLengthHexFromValue, getValueHex, tohex
Class Detail
KJUR.asn1.DERAbstractString(params)
base class for ASN.1 DER string classes
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:
- str - specify initial ASN.1 value(V) by a string
- hex - specify initial ASN.1 value(V) by a hexadecimal string
- Parameters:
- {Array} params
- associative array of parameters (ex. {'str': 'aaa'})
Field Detail
{String}
s
internal string of value
Method Detail
{String}
getString()
get string value of this string object
- Returns:
- {String} string value of this string object
setString(newS)
set value by a string
This method set value by string.
NOTE: This method assumes that the argument string is UTF-8 encoded even though ASN.1 primitive such as IA5String or PrintableString doesn't support all of UTF-8 characters.
NOTE: This method assumes that the argument string is UTF-8 encoded even though ASN.1 primitive such as IA5String or PrintableString doesn't support all of UTF-8 characters.
o = new KJUR.asn1.DERIA5String(); o.setString("abc"); o.setString("あいう");
- Parameters:
- {String} newS
- value by a string to set
setStringHex(newHexString)
set value by a hexadecimal string
- Parameters:
- {String} newHexString
- value by a hexadecimal string to set