|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.objsys.asn1j.runtime.Asn1Type com.objsys.asn1j.runtime.Asn1OctetString com.objsys.asn1j.runtime.Asn1Base64BinaryString
public class Asn1Base64BinaryString
This is a container class for holding the components of an XML Base64Binary value.
Field Summary |
---|
Fields inherited from class com.objsys.asn1j.runtime.Asn1OctetString |
---|
TAG, value |
Fields inherited from class com.objsys.asn1j.runtime.Asn1Type |
---|
BIT_STRING, BMPString, BOOLEAN, DATE, DATE_TIME, DURATION, ENUMERATED, EOC, EXTERNAL, GeneralString, GeneralTime, GraphicString, IA5String, INTEGER, mAsn1TypeName, 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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.objsys.asn1j.runtime.Asn1OctetString |
---|
compareTo, decode, decode, decode, decode, decode, decode, decodeXER, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encodeBase64Binary, equals, equals, getAsn1TypeName, getLength, getMderLength, hashCode, toInputStream |
Methods inherited from class com.objsys.asn1j.runtime.Asn1Type |
---|
clone, decode, decode, decode, decode, decode, encode, encode, equals, getTypeName, indent, isOpenType, matchTag, matchTag, pdiag, print, setKey, setOpenType |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 text
Asn1ValueParseException
Method Detail |
---|
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 tag
Asn1Exception
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 value
java.io.IOException
Asn1Exception
public void encodeAttribute(Asn1XmlEncoder buffer, java.lang.String attrName) throws Asn1Exception, java.io.IOException
encodeAttribute
in class Asn1OctetString
buffer
- Encode message buffer objectattrName
- Attribute name
Asn1Exception
java.io.IOException
public java.lang.String toString()
toString
in class Asn1OctetString
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |