public class DERApplicationSpecific extends ASN1Primitive
Modifier and Type | Field and Description |
---|---|
private boolean |
isConstructed |
private byte[] |
octets |
private int |
tag |
Constructor and Description |
---|
DERApplicationSpecific(boolean explicit,
int tag,
ASN1Encodable object) |
DERApplicationSpecific(boolean isConstructed,
int tag,
byte[] octets) |
DERApplicationSpecific(int tag,
ASN1Encodable object) |
DERApplicationSpecific(int tagNo,
ASN1EncodableVector vec) |
DERApplicationSpecific(int tag,
byte[] octets) |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
asn1Equals(ASN1Primitive o) |
(package private) void |
encode(ASN1OutputStream out) |
(package private) int |
encodedLength() |
int |
getApplicationTag() |
byte[] |
getContents() |
static DERApplicationSpecific |
getInstance(Object obj) |
private int |
getLengthOfHeader(byte[] data) |
ASN1Primitive |
getObject()
Return the enclosed object assuming explicit tagging.
|
ASN1Primitive |
getObject(int derTagNo)
Return the enclosed object assuming implicit tagging.
|
int |
hashCode() |
boolean |
isConstructed() |
private byte[] |
replaceTagNumber(int newTag,
byte[] input) |
equals, fromByteArray, toASN1Primitive, toDERObject, toDLObject
getEncoded, getEncoded, hasEncodedTagValue, toASN1Object
private final boolean isConstructed
private final int tag
private final byte[] octets
DERApplicationSpecific(boolean isConstructed, int tag, byte[] octets)
public DERApplicationSpecific(int tag, byte[] octets)
public DERApplicationSpecific(int tag, ASN1Encodable object) throws IOException
IOException
public DERApplicationSpecific(boolean explicit, int tag, ASN1Encodable object) throws IOException
IOException
public DERApplicationSpecific(int tagNo, ASN1EncodableVector vec)
public static DERApplicationSpecific getInstance(Object obj)
private int getLengthOfHeader(byte[] data)
public boolean isConstructed()
isConstructed
in class ASN1Primitive
public byte[] getContents()
public int getApplicationTag()
public ASN1Primitive getObject() throws IOException
IOException
- if reconstruction fails.public ASN1Primitive getObject(int derTagNo) throws IOException
derTagNo
- the type tag that should be applied to the object's contents.IOException
- if reconstruction fails.int encodedLength() throws IOException
encodedLength
in class ASN1Primitive
IOException
void encode(ASN1OutputStream out) throws IOException
encode
in class ASN1Primitive
IOException
boolean asn1Equals(ASN1Primitive o)
asn1Equals
in class ASN1Primitive
public int hashCode()
hashCode
in class ASN1Primitive
private byte[] replaceTagNumber(int newTag, byte[] input) throws IOException
IOException