java.lang.Object | ||||
↳ | org.bouncycastle.asn1.ASN1Encodable | |||
↳ | org.bouncycastle.asn1.DERObject | |||
↳ | org.bouncycastle.asn1.ASN1Object | |||
↳ | org.bouncycastle.asn1.ASN1TaggedObject |
Known Direct Subclasses |
Known Indirect Subclasses |
ASN.1 TaggedObject - in ASN.1 notation this is any object preceded by a [n] where n is some number - these are assumed to follow the construction rules (as with sequences).
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.bouncycastle.asn1.ASN1Encodable
| |||||||||||
From interface
org.bouncycastle.asn1.DERTags
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a tagged object in the explicit style.
| |||||||||||
Create a tagged object with the style given by the value of explicit.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
return whatever was following the tag.
| |||||||||||
Return the object held in this tagged object as a parser assuming it has
the type of the passed in tag.
| |||||||||||
return whether or not the object may be explicitly tagged.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.bouncycastle.asn1.ASN1Object
| |||||||||||
From class
org.bouncycastle.asn1.DERObject
| |||||||||||
From class
org.bouncycastle.asn1.ASN1Encodable
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.bouncycastle.asn1.ASN1TaggedObjectParser
| |||||||||||
From interface
org.bouncycastle.asn1.DEREncodable
| |||||||||||
From interface
org.bouncycastle.asn1.InMemoryRepresentable
|
Create a tagged object in the explicit style.
tagNo | the tag number for this object. |
---|---|
obj | the tagged object. |
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.
explicit | true if the object is explicitly tagged. |
---|---|
tagNo | the tag number for this object. |
obj | the tagged object. |
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.
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.
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.