Package net.aifusion.asn
Class IA5StringValue
java.lang.Object
net.aifusion.asn.AsnValue
net.aifusion.asn.IA5StringValue
Class to manage an IA5 (ASCII) String
- Author:
- Sharad Singhal
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IA5StringValuecreate(byte[] buffer, int blen, int cursor) Create an IA5 (ASCII) String from a serialized valuebooleanbyte[]Get the encoded value for this ASN.1 value.getValue()Get the value of this stringinthashCode()toAsnString(String prefix) Get a (semi) ASN.1 notation for this value.toString()Methods inherited from class net.aifusion.asn.AsnValue
getLength, getTag, getTagClass, getTagEncoding, getTagNumber, toHex, toHex, toHex, toHex
-
Constructor Details
-
IA5StringValue
Create an ASCII (IA5) string- Parameters:
value- - input String
-
-
Method Details
-
create
Create an IA5 (ASCII) String from a serialized value- Parameters:
buffer- - input bufferblen- - length of input buffercursor- - starting location for the integer value- Returns:
- - BMPStringValue
-
getValue
Get the value of this string- Returns:
- value of the string
-
getEncodedValue
public byte[] getEncodedValue()Description copied from class:AsnValueGet the encoded value for this ASN.1 value. This method should be implemented by subclasses to provide the encoded ASN.1 value- Specified by:
getEncodedValuein classAsnValue- Returns:
- byte [] containing encoded value for this ASN.1 value (including tag, length, content)
-
toAsnString
Description copied from class:AsnValueGet a (semi) ASN.1 notation for this value.- Overrides:
toAsnStringin classAsnValue- Parameters:
prefix- - prefix to add to each line- Returns:
- - string containing the ASN.1 value
-
hashCode
public int hashCode() -
equals
-
toString
-