org.bouncycastle.asn1

Class ASN1Encodable

public abstract class ASN1Encodable extends Object implements DEREncodable

Field Summary
static StringBER
static StringDER
Method Summary
booleanequals(Object o)
byte[]getDEREncoded()
Return the DER encoding of the object, null if the DER encoding can not be made.
DERObjectgetDERObject()
byte[]getEncoded()
byte[]getEncoded(String encoding)
inthashCode()
abstract DERObjecttoASN1Object()

Field Detail

BER

public static final String BER

DER

public static final String DER

Method Detail

equals

public boolean equals(Object o)

getDEREncoded

public byte[] getDEREncoded()
Return the DER encoding of the object, null if the DER encoding can not be made.

Returns: a DER byte array, null otherwise.

getDERObject

public DERObject getDERObject()

getEncoded

public byte[] getEncoded()

getEncoded

public byte[] getEncoded(String encoding)

hashCode

public int hashCode()

toASN1Object

public abstract DERObject toASN1Object()