Top Description Methods
org.bouncycastle.asn1

public Interface ASN1TaggedObjectParser

extends ASN1Encodable, InMemoryRepresentable
Known Direct Implementers
org.bouncycastle.asn1.BERTaggedObjectParser, org.bouncycastle.asn1.ASN1TaggedObject
Imports
java.io.IOException

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

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the tag class.
getTagClass
()

Return the tag class associated with this object.

public int

Returns:

the tag number.
getTagNo
()

Return the tag number associated with this object.

public boolean
public boolean
hasContextTag(int tagNo)

public boolean
hasTag(int tagClass, int tagNo)

public boolean
hasTagClass(int tagClass)

public ASN1Encodable
parseBaseUniversal(boolean declaredExplicit, int baseTagNo)

public ASN1Encodable
parseExplicitBaseObject()

Needed for open types, until we have better type-guided parsing support.

public ASN1TaggedObjectParser
public ASN1TaggedObjectParser
parseImplicitBaseTagged(int baseTagClass, int baseTagNo)

Inherited from org.bouncycastle.asn1.ASN1Encodable:
toASN1Primitive
Inherited from org.bouncycastle.asn1.InMemoryRepresentable:
getLoadedObject

Method Detail

getTagClassback to summary
public int getTagClass()

Return the tag class associated with this object.

Returns:int

the tag class.

getTagNoback to summary
public int getTagNo()

Return the tag number associated with this object.

Returns:int

the tag number.

hasContextTagback to summary
public boolean hasContextTag()
hasContextTagback to summary
public boolean hasContextTag(int tagNo)
hasTagback to summary
public boolean hasTag(int tagClass, int tagNo)
hasTagClassback to summary
public boolean hasTagClass(int tagClass)
parseBaseUniversalback to summary
public ASN1Encodable parseBaseUniversal(boolean declaredExplicit, int baseTagNo) throws IOException
parseExplicitBaseObjectback to summary
public ASN1Encodable parseExplicitBaseObject() throws IOException

Needed for open types, until we have better type-guided parsing support. Use sparingly for other purposes, and prefer parseExplicitBaseTagged() or parseBaseUniversal(boolean, int) where possible. Before using, check for matching tag class and number.

parseExplicitBaseTaggedback to summary
public ASN1TaggedObjectParser parseExplicitBaseTagged() throws IOException
parseImplicitBaseTaggedback to summary
public ASN1TaggedObjectParser parseImplicitBaseTagged(int baseTagClass, int baseTagNo) throws IOException