public class DERApplicationSpecific extends ASN1Object
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
octets |
private int |
tag |
BER, DERAPPLICATION, 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, fromByteArraytoASN1ObjectgetDEREncoded, getDERObject, getEncoded, getEncodedpublic DERApplicationSpecific(int tag, byte[] octets)
public DERApplicationSpecific(int tag, DEREncodable object) throws IOException
IOExceptionpublic DERApplicationSpecific(boolean explicit, int tag, DEREncodable object) throws IOException
IOExceptionprivate int getLengthOfLength(byte[] data)
public boolean isConstructed()
public byte[] getContents()
public int getApplicationTag()
public DERObject getObject() throws IOException
IOExceptionpublic 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 ASN1ObjectIOExceptionboolean asn1Equals(DERObject o)
asn1Equals in class ASN1Objectpublic int hashCode()
hashCode in class ASN1Object