Asn1XerBase64OctetString Class Reference

Inheritance diagram for Asn1XerBase64OctetString:
Asn1OctetString Asn1Type Asn1TypeIF

List of all members.

Public Member Functions

 Asn1XerBase64OctetString (System.String value)
 Asn1XerBase64OctetString (byte[] data, int offset, int nbytes)
 Asn1XerBase64OctetString (byte[] data)
 Asn1XerBase64OctetString ()
override void DecodeXER (System.String buffer, System.String attrs)
override void DecodeXML (System.String buffer, System.String attrs)
override void Encode (Asn1XmlEncoder buffer, System.String elemName, System.String nsPrefix)
override void Encode (Asn1XerEncoder buffer, System.String elemName)

Detailed Description

This is a container class for holding the components of an ASN.1 octet string value. This is a special version of the class that is only generated for the XER encoding rules, if Base64 encoding is used.


Constructor & Destructor Documentation

This constructor creates an empty octet string that can be used in a decode method call to receive an octet string value.

Asn1XerBase64OctetString ( byte[]  data  ) 

This constructor initializes an octet string from the given byte array.

Parameters:
data Byte array containing an octet string in binary form.
Asn1XerBase64OctetString ( byte[]  data,
int  offset,
int  nbytes 
)

This constructor initializes an octet string from a portion of the given byte array. A new byte array is created starting at the given offset and consisting of the given number of bytes.

Parameters:
data Byte array containing an octet string in binary form.
offset Starting offset in data from which to copy bytes
nbytes Number of bytes to copy from target array
Asn1XerBase64OctetString ( System.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.

Examples of valid value formats are as follows:

Binary string: '11010010111001'B

Hex string: '0fa56920014abc'H

Char string: 'abcdefg'

Parameters:
value The ASN.1 value specification text

Member Function Documentation

override void DecodeXER ( System.String  buffer,
System.String  attrs 
) [virtual]

This method decodes ASN.1 octet string type using the XML encoding rules (XER).

Parameters:
buffer String containing data to be decoded
attrs Attributes string from element tag

Reimplemented from Asn1OctetString.

override void DecodeXML ( System.String  buffer,
System.String  attrs 
)

This method decodes an ASN.1 octet string type using the XML schema encoding rules(asn2xsd).

Parameters:
buffer String containing data to be decoded
attrs Attributes string from element tag

Reimplemented from Asn1OctetString.

override void Encode ( Asn1XmlEncoder  buffer,
System.String  elemName,
System.String  nsPrefix 
) [virtual]

This method encodes ASN.1 octet string type with element and namespace prefix name tag according to the XML Encoding as specified in the XML schema standard(asn2xsd).

Parameters:
buffer Encode message buffer object
elemName XML element name used to wrap string
nsPrefix Element namespace value

Reimplemented from Asn1OctetString.

override void Encode ( Asn1XerEncoder  buffer,
System.String  elemName 
) [virtual]

This method encodes ASN.1 octet string type using the XML encoding rules (XER).

Parameters:
buffer Encode message buffer object
elemName XML element name used to wrap string

Reimplemented from Asn1OctetString.