Asn1Base64BinaryString Class Reference

Inheritance diagram for Asn1Base64BinaryString:
Asn1OctetString Asn1Type Asn1TypeIF

List of all members.

Public Member Functions

 Asn1Base64BinaryString (System.String data)
 Asn1Base64BinaryString (byte[] data, int offset, int nbytes)
 Asn1Base64BinaryString (byte[] data)
 Asn1Base64BinaryString ()
override void Encode (Asn1XmlEncoder buffer, System.String elemName, System.String nsPrefix)
override void EncodeAttribute (Asn1XmlEncoder buffer, System.String attrName)
override System.String ToString ()

Static Public Member Functions

static System.String EncodeBase64Binary (byte[] data)

Detailed Description

This is a container class for holding the components of an XML Base64Binary value.


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.

Asn1Base64BinaryString ( byte[]  data  ) 

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

Parameters:
data Byte array containing an octet string in binary form.
Asn1Base64BinaryString ( 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
Asn1Base64BinaryString ( System.String  data  ) 

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:
data The ASN.1 value specification text

Member Function Documentation

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

This method encodes ASN.1 octet string type using 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
attribute Element attribute value

Reimplemented from Asn1OctetString.

override void EncodeAttribute ( Asn1XmlEncoder  buffer,
System.String  attrName 
) [virtual]

This method encodes ASN.1 octet string type using the XML Encoding as specified in the XML schema standard(asn2xsd).

Parameters:
buffer Encode message buffer object
attribute XML attribute name

Reimplemented from Asn1OctetString.

static System.String EncodeBase64Binary ( byte[]  data  )  [static]

Encodes xsd:Base64Binary data into ASCII character using the algorithm defined in RFC2045, as defined in w3c stadard http://www.w3.org/tr/2001/rec-xmlschema-2-20010502#base64Binary

Parameters:
base64binary Array containing base64binary
Returns:
Encoded ASCII string
override System.String ToString (  ) 

This method will return a string representation of the octet string value. The format is the ASN.1 value format for this type..

Returns:
Stringified representation of the value

Reimplemented from Asn1OctetString.