|
Bouncy Castle Cryptography 1.46 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bouncycastle.asn1.ASN1Encodable
public abstract class ASN1Encodable
Base class for objects which can be written directly to ASN.1 output streams.
Field Summary | |
---|---|
static java.lang.String |
BER
|
static java.lang.String |
DER
|
Constructor Summary | |
---|---|
ASN1Encodable()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DER
public static final java.lang.String BER
Constructor Detail |
---|
public ASN1Encodable()
Method Detail |
---|
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.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public DERObject getDERObject()
getDERObject
in interface DEREncodable
public abstract DERObject toASN1Object()
|
Bouncy Castle Cryptography 1.46 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |