public class Asn1Base64BinaryString 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 |
|---|
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, setOpenTypepublic 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 textAsn1ValueParseExceptionpublic void decodeXML(java.lang.String buffer,
java.lang.String attrs)
throws Asn1Exception
decodeXML in interface Asn1TypeIFdecodeXML in class Asn1OctetStringbuffer - String containing data to be decodedattrs - Attributes string from element tagAsn1Exceptionpublic void encode(Asn1XmlEncoder buffer, java.lang.String elemName, java.lang.String nsPrefix) throws java.io.IOException, Asn1Exception
encode in class Asn1OctetStringbuffer - 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 Asn1OctetStringbuffer - Encode message buffer objectattrName - Attribute nameAsn1Exceptionjava.io.IOExceptionpublic java.lang.String toString()
toString in class Asn1OctetString