public class DERApplicationSpecific extends ASN1Primitive
| Constructor and Description |
|---|
DERApplicationSpecific(boolean explicit,
int tag,
ASN1Encodable object) |
DERApplicationSpecific(int tag,
ASN1Encodable object) |
DERApplicationSpecific(int tagNo,
ASN1EncodableVector vec) |
DERApplicationSpecific(int tag,
byte[] octets) |
| Modifier and Type | Method and Description |
|---|---|
int |
getApplicationTag() |
byte[] |
getContents() |
static DERApplicationSpecific |
getInstance(Object obj) |
ASN1Primitive |
getObject()
Return the enclosed object assuming explicit tagging.
|
ASN1Primitive |
getObject(int derTagNo)
Return the enclosed object assuming implicit tagging.
|
int |
hashCode()
Returns an integer hash code for this object.
|
boolean |
isConstructed() |
equals, fromByteArray, toASN1PrimitivegetEncoded, getEncoded, hasEncodedTagValue, toASN1Objectpublic DERApplicationSpecific(int tag,
byte[] octets)
public DERApplicationSpecific(int tag,
ASN1Encodable object)
throws IOException
IOExceptionpublic DERApplicationSpecific(boolean explicit,
int tag,
ASN1Encodable object)
throws IOException
IOExceptionpublic DERApplicationSpecific(int tagNo,
ASN1EncodableVector vec)
public static DERApplicationSpecific getInstance(Object obj)
public boolean isConstructed()
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.public int hashCode()
ObjectObject.equals(java.lang.Object) returns true must return
the same hash code value. This means that subclasses of Object
usually override both methods or neither method.
Note that hash values must not change over time unless information used in equals comparisons also changes.
See Writing a correct
hashCode method
if you intend implementing your own hashCode method.
hashCode in class ASN1PrimitiveObject.equals(java.lang.Object)