Class Asn1Object
- Namespace
- Org.BouncyCastle.Asn1
- Assembly
- BouncyCastle.Cryptography.dll
public abstract class Asn1Object : Asn1Encodable, IAsn1Convertible
- Inheritance
-
Asn1Object
- Implements
- Derived
- Inherited Members
Methods
Asn1Equals(Asn1Object)
protected abstract bool Asn1Equals(Asn1Object asn1Object)
Parameters
asn1ObjectAsn1Object
Returns
Asn1GetHashCode()
protected abstract int Asn1GetHashCode()
Returns
EncodeTo(Stream)
public override void EncodeTo(Stream output)
Parameters
outputStream
EncodeTo(Stream, string)
public override void EncodeTo(Stream output, string encoding)
Parameters
Equals(Asn1Object)
public bool Equals(Asn1Object other)
Parameters
otherAsn1Object
Returns
FromByteArray(byte[])
Create a base ASN.1 object from a byte array.
public static Asn1Object FromByteArray(byte[] data)
Parameters
databyte[]The byte array to parse.
Returns
- Asn1Object
The base ASN.1 object represented by the byte array.
Exceptions
- IOException
If there is a problem parsing the data, or parsing an object did not exhaust the available data.
FromStream(Stream)
Read a base ASN.1 object from a stream.
public static Asn1Object FromStream(Stream inStr)
Parameters
inStrStreamThe stream to parse.
Returns
- Asn1Object
The base ASN.1 object represented by the byte array.
Exceptions
- IOException
If there is a problem parsing the data.
ToAsn1Object()
public override sealed Asn1Object ToAsn1Object()