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(java.lang.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, toDLObjectgetEncoded, getEncoded, hasEncodedTagValue, toASN1Objectprivate 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 java.io.IOException
java.io.IOExceptionpublic DERApplicationSpecific(boolean explicit, int tag, ASN1Encodable object) throws java.io.IOException
java.io.IOExceptionpublic DERApplicationSpecific(int tagNo, ASN1EncodableVector vec)
public static DERApplicationSpecific getInstance(java.lang.Object obj)
private int getLengthOfHeader(byte[] data)
public boolean isConstructed()
isConstructed in class ASN1Primitivepublic byte[] getContents()
public int getApplicationTag()
public ASN1Primitive getObject() throws java.io.IOException
java.io.IOException - if reconstruction fails.public ASN1Primitive getObject(int derTagNo) throws java.io.IOException
derTagNo - the type tag that should be applied to the object's contents.java.io.IOException - if reconstruction fails.int encodedLength() throws java.io.IOException
encodedLength in class ASN1Primitivejava.io.IOExceptionvoid encode(ASN1OutputStream out) throws java.io.IOException
encode in class ASN1Primitivejava.io.IOExceptionboolean asn1Equals(ASN1Primitive o)
asn1Equals in class ASN1Primitivepublic int hashCode()
hashCode in class ASN1Primitiveprivate byte[] replaceTagNumber(int newTag, byte[] input) throws java.io.IOException
java.io.IOException