public class Asn1BCDString extends Asn1OctetString
TAG, valueBIT_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 |
|---|
Asn1BCDString()
This constructor creates an empty octet string that can be used in
a decode method call to receive an octet string value.
|
Asn1BCDString(byte[] data)
This constructor initializes an octet string from the given
byte array.
|
Asn1BCDString(byte[] data,
int offset,
int nbytes)
This constructor initializes an octet string from a portion
of the given byte array.
|
Asn1BCDString(java.lang.String value_)
This constructor parses the given BCD 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.BCDToString.
|
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, setOpenTypepublic Asn1BCDString()
public Asn1BCDString(byte[] data)
data - Byte array containing an octet string
in binary form.public Asn1BCDString(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 Asn1BCDString(java.lang.String value_)
value_ - BCD character string. E.g. "5551212E"public java.lang.String toString()
toString in class Asn1OctetString