public class DERApplicationSpecific extends ASN1Object
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 tagNo,
ASN1EncodableVector vec) |
DERApplicationSpecific(int tag,
byte[] octets) |
DERApplicationSpecific(int tag,
DEREncodable object) |
Modifier and Type | Method and Description |
---|---|
int |
getApplicationTag() |
byte[] |
getContents() |
DERObject |
getObject()
Return the enclosed object assuming explicit tagging.
|
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
public DERApplicationSpecific(int tagNo, ASN1EncodableVector vec)
public boolean isConstructed()
public byte[] getContents()
public int getApplicationTag()
public DERObject getObject() throws IOException
IOException
- if reconstruction fails.public DERObject getObject(int derTagNo) throws IOException
derTagNo
- the type tag that should be applied to the object's contents.IOException
- if reconstruction fails.public int hashCode()
hashCode
in class ASN1Object
Copyright © 2015. All rights reserved.