Class Index | File Index

Classes


Class KJUR.asn1.DERAbstractString


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

Class Summary
Constructor Attributes Constructor Name and Description
 
base class for ASN.1 DER string classes
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
NOTE: 'params' can be omitted.
Field Summary
Field Attributes Field Name and Description
 
s
internal string of value
Fields borrowed from class KJUR.asn1.ASN1Object:
hL, hT, hTLV, hV, isModified, params
Method Summary
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:
  • str - specify initial ASN.1 value(V) by a string
  • hex - specify initial ASN.1 value(V) by a hexadecimal string
NOTE: 'params' can be omitted.
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.
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

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