public abstract class ASN1Encodable extends Object implements DEREncodable
| Constructor and Description |
|---|
ASN1Encodable() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(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(String encoding)
Return either the default for "BER" or a DER encoding if "DER" is specified.
|
int |
hashCode() |
abstract DERObject |
toASN1Object() |
public static final String DER
public static final String BER
public byte[] getEncoded()
throws IOException
IOException - on encoding error.public byte[] getEncoded(String encoding) throws IOException
encoding - name of encoding to use.IOException - on encoding error.public byte[] getDEREncoded()
public DERObject getDERObject()
getDERObject in interface DEREncodablepublic abstract DERObject toASN1Object()
Copyright © 2015. All rights reserved.