public class Asn1TBCDString extends Asn1OctetString
TAG, value
BIT_STRING, BMPString, BOOLEAN, DATE, DATE_TIME, DURATION, ENUMERATED, EOC, EXTERNAL, GeneralString, GeneralTime, GraphicString, IA5String, INTEGER, mNonParameterizedTypeName, NULL, NumericString, OBJECT_IDENTIFIER, ObjectDescriptor, OCTET_STRING, OID_IRI, OpenType, PrintableString, REAL, RELATIVE_OID_IRI, RelativeOID, SEQUENCE, SET, T61String, TeletexString, TIME, TIME_OF_DAY, UniversalString, UTCTime, UTF8String, VideotexString, VisibleString
Constructor and Description |
---|
Asn1TBCDString()
This constructor creates an empty octet string that can be used in
a decode method call to receive an octet string value.
|
Asn1TBCDString(byte[] data)
This constructor initializes an octet string from the given
byte array.
|
Asn1TBCDString(byte[] data,
int offset,
int nbytes)
This constructor initializes an octet string from a portion
of the given byte array.
|
Asn1TBCDString(java.lang.String value_)
This constructor parses the given TBCD character string and assigns the
value to the internal octet string.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString()
This method will return a string representation of the octet string,
using Asn1Util.TBCDToString.
|
compareTo, decode, decode, decode, decode, decode, decode, decode, decode, decodeAsBase64, decodeAsHex, decodeContent, decodeRemainingBits, decodeXER, decodeXML, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encodeAsBase64, encodeAsHex, encodeAttribute, encodeBase64Binary, encodeContent, equals, equals, equals, getAsn1TypeName, getLength, getMderLength, hashCode, skip, skip, toInputStream
_setKey, _setLicLocation, clone, decode, decode, decode, decode, decode, decode, decode, decode, decode, encode, encode, encode, encode, encodeAsOpenType, equals, getNonParameterizedTypeName, getTypeName, indent, indent, isOpenType, matchTag, matchTag, pdiag, print, print, print, setNonParameterizedTypeName, setOpenType
public Asn1TBCDString()
public Asn1TBCDString(byte[] data)
data
- Byte array containing an octet string
in binary form.public Asn1TBCDString(byte[] data, int offset, int nbytes)
data
- Byte array containing an octet string
in binary form.offset
- Starting offset in data from which to copy bytesnbytes
- Number of bytes to copy from target arraypublic Asn1TBCDString(java.lang.String value_) throws Asn1ValueParseException
value_
- TBCD character string. E.g. "5551212*c"Asn1ValueParseException
public java.lang.String toString()
toString
in class Asn1OctetString