Package net.aifusion.asn
Class VisibleStringValue
java.lang.Object
net.aifusion.asn.AsnValue
net.aifusion.asn.VisibleStringValue
Class to wrap an ASN.1 Visible String
- Author:
- Sharad Singhal
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VisibleStringValuecreate(byte[] buffer, int blen, int cursor) Create a visible string from an input bufferbooleanbyte[]Get the encoded value for this ASN.1 value.getValue()Get the value of this visible 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
-
VisibleStringValue
Create a visible String- Parameters:
value- string value
-
-
Method Details
-
getValue
Get the value of this visible string- Returns:
- - value of the visible string
-
create
Create a visible string from an input buffer- Parameters:
buffer- - input bufferblen- - number of bytes filled in the input buffercursor- - current cursor- Returns:
- - visible string value
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-