|
| Asn1CerOutputStream (System.IO.Stream os) |
|
| Asn1CerOutputStream (System.IO.Stream os, int bufSize) |
|
override void | Encode (Asn1Type type, bool explicitTagging) |
|
override void | EncodeBitString (byte[] value, int numbits, bool explicitTagging, Asn1Tag tag) |
|
override void | EncodeBMPString (System.String value, bool explicitTagging, Asn1Tag tag) |
|
override void | EncodeCharString (System.String value, bool explicitTagging, Asn1Tag tag) |
|
override void | EncodeOctetString (byte[] value, bool explicitTagging, Asn1Tag tag) |
|
virtual void | EncodeStringTag (int nbytes, Asn1Tag tag) |
|
virtual void | EncodeStringTag (int nbytes, short tagClass, short tagForm, int tagIDCode) |
|
override void | EncodeUnivString (int[] value, bool explicitTagging, Asn1Tag tag) |
|
| Asn1BerOutputStream (System.IO.Stream os) |
|
| Asn1BerOutputStream (System.IO.Stream os, int bufSize) |
|
virtual void | EncodeEOC () |
|
virtual void | EncodeIdentifier (long ident) |
|
virtual void | EncodeIntValue (long data, bool encodeLen) |
|
virtual void | EncodeLength (int len) |
|
virtual void | EncodeTag (Asn1Tag tag) |
|
virtual void | EncodeTag (short tagClass, short tagForm, int tagIDCode) |
|
virtual void | EncodeTagAndIndefLen (Asn1Tag tag) |
|
virtual void | EncodeTagAndIndefLen (short tagClass, short tagForm, int tagIDCode) |
|
virtual void | EncodeTagAndLength (Asn1Tag tag, int len) |
|
virtual void | EncodeUnsignedBinaryNumber (long data) |
|
| Asn1OutputStream (System.IO.Stream os) |
|
override void | Close () |
|
override void | Flush () |
|
override int | Read (byte[] buffer, int offset, int count) |
|
override long | Seek (long offset, System.IO.SeekOrigin origin) |
|
override void | SetLength (long value) |
|
virtual void | Write (byte[] b) |
|
override void | Write (System.Byte[] b, int off, int len) |
|
void | Write2Bytes (int value) |
|
void | Write4Bytes (int value) |
|
virtual void | WriteByte (int b) |
|
override void | WriteByte (byte b) |
|
void | Write (byte[] b, int off, int len) |
|
This class implements the output stream to encode ASN.1 messages as specified in the Canonical Encoding Rules (CER) as specified in the ITU-T X.690 standard. A reference to an object of this type is passed to each of the ASN.1 type encode methods involved in encoding a particular message type.
override void Encode |
( |
Asn1Type |
type, |
|
|
bool |
explicitTagging |
|
) |
| |
|
virtual |
This method encodes and writes to the stream ASN.1 types. The UNIVERSAL tag value and length is also encoded if explicit tagging is specified (the universal identifier must be provided by the caller).
Throws, exception thrown by the underlying System.IO.Stream object.
- Parameters
-
type | The object to be written |
explicitTagging | Flag indicating explicit tagging should be done |
Reimplemented from Asn1BerOutputStream.
References Asn1Type.Encode().
override void EncodeBitString |
( |
byte [] |
value, |
|
|
int |
numbits, |
|
|
bool |
explicitTagging, |
|
|
Asn1Tag |
tag |
|
) |
| |
|
virtual |
This method writes the given array of bytes as bit string value.
Throws, exception thrown by the underlying System.IO.Stream object.
- Parameters
-
value | Byte array containing data to encode. |
numbits | Number of bits to encode |
explicitTagging | Flag indicating explicit tagging should be done |
tag | Universal tag to apply |
- Exceptions
-
Reimplemented from Asn1BerOutputStream.
References Asn1BitString._TAG, Asn1Tag.CONS, Asn1Tag.mClass, and Asn1Tag.mIDCode.
override void EncodeBMPString |
( |
System.String |
value, |
|
|
bool |
explicitTagging, |
|
|
Asn1Tag |
tag |
|
) |
| |
|
virtual |
override void EncodeCharString |
( |
System.String |
value, |
|
|
bool |
explicitTagging, |
|
|
Asn1Tag |
tag |
|
) |
| |
|
virtual |
This method encodes and writes to the stream an ASN.1 8-bit character string types including IA5String, PrintableString, NumericString, etc. The UNIVERSAL tag value and length is also encoded if explicit tagging is specified (the universal identifier must be provided by the caller).
Throws, exception thrown by the underlying System.IO.Stream object.
- Parameters
-
value | The string object to be written |
explicitTagging | Flag indicating explicit tagging should be done |
tag | Universal tag to apply |
- Exceptions
-
Reimplemented from Asn1BerOutputStream.
References Asn1Tag.CONS, Asn1Tag.mClass, Asn1Tag.mIDCode, and Asn1Util.ToByteArray().
override void EncodeOctetString |
( |
byte [] |
value, |
|
|
bool |
explicitTagging, |
|
|
Asn1Tag |
tag |
|
) |
| |
|
virtual |
This method writes the given array of bytes as octet string value.
Throws, exception thrown by the underlying System.IO.Stream object.
- Parameters
-
value | Byte array containing data to encode. |
explicitTagging | Flag indicating explicit tagging should be done |
tag | Universal tag to apply |
- Exceptions
-
Reimplemented from Asn1BerOutputStream.
References Asn1OctetString._TAG, Asn1Tag.CONS, Asn1Tag.mClass, and Asn1Tag.mIDCode.
override void EncodeUnivString |
( |
int [] |
value, |
|
|
bool |
explicitTagging, |
|
|
Asn1Tag |
tag |
|
) |
| |
|
virtual |