| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv ASN1Encodable | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public | ASN1TaggedObject(boolean
true if the object is explicitly tagged. explicit, int the tag number for this object. tagNo, ASN1Encodable the tagged object. obj)Create a tagged object with the style given by the value of explicit. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | asn1Equals(ASN1Primitive o)
Implements abstract org. |
| pack-priv abstract void | |
| public static ASN1TaggedObject | |
| public static ASN1TaggedObject | |
| public ASN1Primitive | getLoadedObject()
Implements org. |
| public ASN1Primitive | |
| public ASN1Encodable | getObjectParser(int
the primitive tag value for the object tagged originally. tag, boolean true if the tagging was done explicitly. isExplicit)Implements org. |
| public int | Returns: the tag number.Implements org. |
| public int | hashCode()
Implements abstract org. |
| public boolean | |
| public boolean | |
| pack-priv ASN1Primitive | toDERObject()
Return the current object as one which encodes using Distinguished Encoding Rules.
|
| pack-priv ASN1Primitive | toDLObject()
Return the current object as one which encodes using Definite Length encoding.
|
| public String |
| empty | back to summary |
|---|---|
| pack-priv boolean empty | |
| explicit | back to summary |
|---|---|
| pack-priv boolean explicit | |
| obj | back to summary |
|---|---|
| pack-priv ASN1Encodable obj | |
| tagNo | back to summary |
|---|---|
| pack-priv int tagNo | |
| ASN1TaggedObject | back to summary |
|---|---|
| public ASN1TaggedObject(boolean explicit, int tagNo, ASN1Encodable obj) Create a tagged object with the style given by the value of explicit. If the object implements ASN1Choice the tag style will always be changed to explicit in accordance with the ASN.1 encoding rules.
| |
| asn1Equals | back to summary |
|---|---|
| pack-priv boolean asn1Equals(ASN1Primitive o) Implements abstract org. Doc from org. Equality (similarity) comparison for two ASN1Primitive objects. | |
| encode | back to summary |
|---|---|
| pack-priv abstract void encode(ASN1OutputStream out) throws IOException Implements abstract org. | |
| getInstance | back to summary |
|---|---|
| public static ASN1TaggedObject getInstance(ASN1TaggedObject obj, boolean explicit) | |
| getInstance | back to summary |
|---|---|
| public static ASN1TaggedObject getInstance(Object obj) | |
| getLoadedObject | back to summary |
|---|---|
| public ASN1Primitive getLoadedObject() Implements org. Doc from org. Get the in-memory representation of the ASN.1 object.
| |
| getObject | back to summary |
|---|---|
| public ASN1Primitive getObject() Return whatever was following the tag. Note tagged objects are generally context dependent if you're trying to extract a tagged object you should be going via the appropriate getInstance method. | |
| getObjectParser | back to summary |
|---|---|
| public ASN1Encodable getObjectParser(int tag, boolean isExplicit) throws IOException Implements org. Return the object held in this tagged object as a parser assuming it has the type of the passed in tag. If the object doesn't have a parser associated with it, the base object is returned.
| |
| getTagNo | back to summary |
|---|---|
| public int getTagNo() Implements org. Return the tag number associated with this object.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract org. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() | |
| isExplicit | back to summary |
|---|---|
| public boolean isExplicit() return whether or not the object may be explicitly tagged. Note if the object has been read from an input stream, the only time you can be sure if isExplicit is returning the true state of affairs is if it returns false. An implicitly tagged object may appear to be explicitly tagged, so you need to understand the context under which the reading was done as well, see getObject below. | |
| toDERObject | back to summary |
|---|---|
| pack-priv ASN1Primitive toDERObject() Overrides org. Doc from org. Return the current object as one which encodes using Distinguished Encoding Rules.
| |
| toDLObject | back to summary |
|---|---|
| pack-priv ASN1Primitive toDLObject() Overrides org. Doc from org. Return the current object as one which encodes using Definite Length encoding.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |