org.apache.commons.ssl.asn1
public class DERApplicationSpecific extends ASN1Object
Modifier and Type | Field and Description |
---|---|
private byte[] |
octets |
private int |
tag |
BER, DER
APPLICATION, BIT_STRING, BMP_STRING, BOOLEAN, CONSTRUCTED, ENUMERATED, EXTERNAL, GENERAL_STRING, GENERALIZED_TIME, GRAPHIC_STRING, IA5_STRING, INTEGER, NULL, NUMERIC_STRING, OBJECT_IDENTIFIER, OCTET_STRING, PRINTABLE_STRING, SEQUENCE, SEQUENCE_OF, SET, SET_OF, T61_STRING, TAGGED, UNIVERSAL_STRING, UTC_TIME, UTF8_STRING, VIDEOTEX_STRING, VISIBLE_STRING
Constructor and Description |
---|
DERApplicationSpecific(boolean explicit,
int tag,
DEREncodable object) |
DERApplicationSpecific(int tag,
byte[] octets) |
DERApplicationSpecific(int tag,
DEREncodable object) |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
asn1Equals(DERObject o) |
(package private) void |
encode(DEROutputStream out) |
int |
getApplicationTag() |
byte[] |
getContents() |
private int |
getLengthOfLength(byte[] data) |
DERObject |
getObject() |
DERObject |
getObject(int derTagNo)
Return the enclosed object assuming implicit tagging.
|
int |
hashCode() |
boolean |
isConstructed() |
equals, fromByteArray
toASN1Object
getDEREncoded, getDERObject, getEncoded, getEncoded
public DERApplicationSpecific(int tag, byte[] octets)
public DERApplicationSpecific(int tag, DEREncodable object) throws IOException
IOException
public DERApplicationSpecific(boolean explicit, int tag, DEREncodable object) throws IOException
IOException
private int getLengthOfLength(byte[] data)
public boolean isConstructed()
public byte[] getContents()
public int getApplicationTag()
public DERObject getObject() throws IOException
IOException
public DERObject getObject(int derTagNo) throws IOException
derTagNo
- the type tag that should be applied to the object's contents.IOException
- if reconstruction fails.void encode(DEROutputStream out) throws IOException
encode
in class ASN1Object
IOException
boolean asn1Equals(DERObject o)
asn1Equals
in class ASN1Object
public int hashCode()
hashCode
in class ASN1Object