public abstract class ASN1TaggedObject extends ASN1Object implements ASN1TaggedObjectParser
| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
empty |
(package private) boolean |
explicit |
(package private) DEREncodable |
obj |
(package private) int |
tagNo |
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 |
|---|
ASN1TaggedObject(boolean explicit,
int tagNo,
DEREncodable obj)
Create a tagged object with the style given by the value of explicit.
|
ASN1TaggedObject(int tagNo,
DEREncodable obj)
Create a tagged object in the explicit style.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) boolean |
asn1Equals(DERObject o) |
(package private) abstract void |
encode(DEROutputStream out) |
static ASN1TaggedObject |
getInstance(ASN1TaggedObject obj,
boolean explicit) |
static ASN1TaggedObject |
getInstance(java.lang.Object obj) |
DERObject |
getObject()
return whatever was following the tag.
|
DEREncodable |
getObjectParser(int tag,
boolean isExplicit)
Return the object held in this tagged object as a parser assuming it has
the type of the passed in tag.
|
int |
getTagNo() |
int |
hashCode() |
boolean |
isEmpty() |
boolean |
isExplicit()
return whether or not the object may be explicitly tagged.
|
java.lang.String |
toString() |
equals, fromByteArraytoASN1ObjectgetDEREncoded, getDERObject, getEncoded, getEncodedclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDERObjectint tagNo
boolean empty
boolean explicit
DEREncodable obj
public ASN1TaggedObject(int tagNo,
DEREncodable obj)
tagNo - the tag number for this object.obj - the tagged object.public ASN1TaggedObject(boolean explicit,
int tagNo,
DEREncodable obj)
If the object implements ASN1Choice the tag style will always be changed to explicit in accordance with the ASN.1 encoding rules.
explicit - true if the object is explicitly tagged.tagNo - the tag number for this object.obj - the tagged object.public static ASN1TaggedObject getInstance(ASN1TaggedObject obj, boolean explicit)
public static ASN1TaggedObject getInstance(java.lang.Object obj)
boolean asn1Equals(DERObject o)
asn1Equals in class ASN1Objectpublic int hashCode()
hashCode in class ASN1Objectpublic int getTagNo()
getTagNo in interface ASN1TaggedObjectParserpublic boolean isExplicit()
public boolean isEmpty()
public DERObject getObject()
public DEREncodable getObjectParser(int tag, boolean isExplicit)
getObjectParser in interface ASN1TaggedObjectParserabstract void encode(DEROutputStream out) throws java.io.IOException
encode in class ASN1Objectjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 1998-2014 Gamma Technologies. All Rights Reserved.