org.bouncycastle.asn1
public abstract class ASN1Encodable extends java.lang.Object implements DEREncodable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BER |
static java.lang.String |
DER |
| Constructor and Description |
|---|
ASN1Encodable() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
byte[] |
getDEREncoded()
Return the DER encoding of the object, null if the DER encoding can not be made.
|
DERObject |
getDERObject() |
byte[] |
getEncoded()
Return the default BER or DER encoding for this object.
|
byte[] |
getEncoded(java.lang.String encoding)
Return either the default for "BER" or a DER encoding if "DER" is specified.
|
int |
hashCode() |
abstract DERObject |
toASN1Object() |
public static final java.lang.String DER
public static final java.lang.String BER
public byte[] getEncoded()
throws java.io.IOException
java.io.IOException - on encoding error.public byte[] getEncoded(java.lang.String encoding)
throws java.io.IOException
encoding - name of encoding to use.java.io.IOException - on encoding error.public byte[] getDEREncoded()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic DERObject getDERObject()
getDERObject in interface DEREncodablepublic abstract DERObject toASN1Object()