public class Asn1Base64BinaryString 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 |
---|
Asn1Base64BinaryString()
This constructor creates an empty octet string that can be used in
a decode method call to receive an octet string value.
|
Asn1Base64BinaryString(byte[] data)
This constructor initializes an octet string from the given
byte array.
|
Asn1Base64BinaryString(byte[] data,
int offset,
int nbytes)
This constructor initializes an octet string from a portion
of the given byte array.
|
Asn1Base64BinaryString(java.lang.String value_)
This constructor parses the given ASN.1 value text (either a
binary or hex data string) and assigns the values to the internal
bit string.
|
Modifier and Type | Method and Description |
---|---|
void |
decodeXML(java.lang.String buffer,
java.lang.String attrs)
This method decodes a base64 encoded character string type into
binary octets.
|
void |
encode(Asn1XmlEncoder buffer,
java.lang.String elemName,
java.lang.String nsPrefix)
This method encodes ASN.1 octet string type using the XML
Encoding as specified in the XML schema standard(asn2xsd).
|
void |
encodeAttribute(Asn1XmlEncoder buffer,
java.lang.String attrName)
This method encodes a base64 string type attribute using the XML
encoding as specified in the XML schema standard(asn2xsd).
|
java.lang.String |
toString()
This method will return a string representation of the octet string
value.
|
compareTo, decode, decode, decode, decode, decode, decode, decode, decode, decodeAsBase64, decodeAsHex, decodeContent, decodeRemainingBits, decodeXER, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encodeAsBase64, encodeAsHex, 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 Asn1Base64BinaryString()
public Asn1Base64BinaryString(byte[] data)
data
- Byte array containing an octet string
in binary form.public Asn1Base64BinaryString(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 Asn1Base64BinaryString(java.lang.String value_) throws Asn1ValueParseException
value_
- The ASN.1 value specification textAsn1ValueParseException
public void decodeXML(java.lang.String buffer, java.lang.String attrs) throws Asn1Exception
decodeXML
in interface Asn1TypeIF
decodeXML
in class Asn1OctetString
buffer
- String containing data to be decodedattrs
- Attributes string from element tagAsn1Exception
public void encode(Asn1XmlEncoder buffer, java.lang.String elemName, java.lang.String nsPrefix) throws java.io.IOException, Asn1Exception
encode
in class Asn1OctetString
buffer
- Encode message buffer objectelemName
- XML element name used to wrap stringnsPrefix
- Element namespace prefix valuejava.io.IOException
- Any exception thrown by the underlying stream.Asn1Exception
- Thrown, if operation is failed.public void encodeAttribute(Asn1XmlEncoder buffer, java.lang.String attrName) throws Asn1Exception, java.io.IOException
encodeAttribute
in class Asn1OctetString
buffer
- Encode message buffer objectattrName
- Attribute nameAsn1Exception
java.io.IOException
public java.lang.String toString()
toString
in class Asn1OctetString