Table of Contents

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

asn1Object Asn1Object

Returns

bool

Asn1GetHashCode()

protected abstract int Asn1GetHashCode()

Returns

int

EncodeTo(Stream)

public override void EncodeTo(Stream output)

Parameters

output Stream

EncodeTo(Stream, string)

public override void EncodeTo(Stream output, string encoding)

Parameters

output Stream
encoding string

Equals(Asn1Object)

public bool Equals(Asn1Object other)

Parameters

other Asn1Object

Returns

bool

FromByteArray(byte[])

Create a base ASN.1 object from a byte array.

public static Asn1Object FromByteArray(byte[] data)

Parameters

data byte[]

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

inStr Stream

The 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()

Returns

Asn1Object