org.apache.commons.ssl.asn1
Class ASN1Encodable
java.lang.Object
org.apache.commons.ssl.asn1.ASN1Encodable
- All Implemented Interfaces:
- DEREncodable
- Direct Known Subclasses:
- DERObject
public abstract class ASN1Encodable
- extends java.lang.Object
- implements DEREncodable
Field Summary |
static java.lang.String |
BER
|
static java.lang.String |
DER
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
DER
public static final java.lang.String DER
- See Also:
- Constant Field Values
BER
public static final java.lang.String BER
- See Also:
- Constant Field Values
ASN1Encodable
public ASN1Encodable()
getEncoded
public byte[] getEncoded()
throws java.io.IOException
- Throws:
java.io.IOException
getEncoded
public byte[] getEncoded(java.lang.String encoding)
throws java.io.IOException
- Throws:
java.io.IOException
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.
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
getDERObject
public DERObject getDERObject()
- Specified by:
getDERObject
in interface DEREncodable
toASN1Object
public abstract DERObject toASN1Object()