Bouncy Castle Cryptography Library 1.65

org.bouncycastle.asn1
Interface ASN1TaggedObjectParser

All Superinterfaces:
ASN1Encodable, InMemoryRepresentable
All Known Implementing Classes:
ASN1TaggedObject, BERTaggedObjectParser

public interface ASN1TaggedObjectParser
extends ASN1Encodable, InMemoryRepresentable

Interface for the parsing of a generic tagged ASN.1 object.


Method Summary
 ASN1Encodable getObjectParser(int tag, boolean isExplicit)
          Return a parser for the actual object tagged.
 int getTagNo()
          Return the tag number associated with the underlying tagged object.
 
Methods inherited from interface org.bouncycastle.asn1.ASN1Encodable
toASN1Primitive
 
Methods inherited from interface org.bouncycastle.asn1.InMemoryRepresentable
getLoadedObject
 

Method Detail

getTagNo

public int getTagNo()
Return the tag number associated with the underlying tagged object.

Returns:
the object's tag number.

getObjectParser

public ASN1Encodable getObjectParser(int tag,
                                     boolean isExplicit)
                              throws java.io.IOException
Return a parser for the actual object tagged.

Parameters:
tag - the primitive tag value for the object tagged originally.
isExplicit - true if the tagging was done explicitly.
Returns:
a parser for the tagged object.
Throws:
java.io.IOException - if a parser cannot be constructed.

Bouncy Castle Cryptography Library 1.65