Top Description Fields Constructors Methods
org.bouncycastle.asn1

pack-priv Class BERTaggedObjectParser

extends Object
implements ASN1TaggedObjectParser
Class Inheritance
All Implemented Interfaces
org.bouncycastle.asn1.ASN1TaggedObjectParser, org.bouncycastle.asn1.InMemoryRepresentable, org.bouncycastle.asn1.ASN1Encodable
Known Direct Subclasses
org.bouncycastle.asn1.DLTaggedObjectParser
Imports
java.io.IOException

Parser for indefinite-length tagged objects.

Field Summary

Modifier and TypeField and Description
pack-priv final ASN1StreamParser
pack-priv final int
pack-priv final int

Constructor Summary

AccessConstructor and Description
pack-priv
BERTaggedObjectParser(int tagClass, int tagNo, ASN1StreamParser parser)

Method Summary

Modifier and TypeMethod and Description
public ASN1Primitive

Returns:

an ASN1TaggedObject.
getLoadedObject
()

Implements org.bouncycastle.asn1.InMemoryRepresentable.getLoadedObject.

Return an in-memory, encodable, representation of the tagged object.
public int
getTagClass()

Implements org.bouncycastle.asn1.ASN1TaggedObjectParser.getTagClass.

Return the tag class associated with this object.
public int
getTagNo()

Implements org.bouncycastle.asn1.ASN1TaggedObjectParser.getTagNo.

Return the tag number associated with this object.
public boolean
public boolean
public boolean
hasTag(int tagClass, int tagNo)

Implements org.bouncycastle.asn1.ASN1TaggedObjectParser.hasTag.

public boolean
public ASN1Encodable
parseBaseUniversal(boolean declaredExplicit, int baseTagNo)

Implements org.bouncycastle.asn1.ASN1TaggedObjectParser.parseBaseUniversal.

public ASN1Encodable
parseExplicitBaseObject()

Implements org.bouncycastle.asn1.ASN1TaggedObjectParser.parseExplicitBaseObject.

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

Returns:

an ASN1TaggedObject
toASN1Primitive
()

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Return an ASN1TaggedObject representing this parser and its contents.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_parserback to summary
pack-priv final ASN1StreamParser _parser
_tagClassback to summary
pack-priv final int _tagClass
_tagNoback to summary
pack-priv final int _tagNo

Constructor Detail

BERTaggedObjectParserback to summary
pack-priv BERTaggedObjectParser(int tagClass, int tagNo, ASN1StreamParser parser)

Method Detail

getLoadedObjectback to summary
public ASN1Primitive getLoadedObject() throws IOException

Implements org.bouncycastle.asn1.InMemoryRepresentable.getLoadedObject.

Return an in-memory, encodable, representation of the tagged object.

Returns:ASN1Primitive

an ASN1TaggedObject.

Exceptions
IOException:
if there is an issue loading the data.
getTagClassback to summary
public int getTagClass()

Implements org.bouncycastle.asn1.ASN1TaggedObjectParser.getTagClass.

Doc from org.bouncycastle.asn1.ASN1TaggedObjectParser.getTagClass.

Return the tag class associated with this object.

Returns:int

the tag class.

getTagNoback to summary
public int getTagNo()

Implements org.bouncycastle.asn1.ASN1TaggedObjectParser.getTagNo.

Doc from org.bouncycastle.asn1.ASN1TaggedObjectParser.getTagNo.

Return the tag number associated with this object.

Returns:int

the tag number.

hasContextTagback to summary
public boolean hasContextTag()

Implements org.bouncycastle.asn1.ASN1TaggedObjectParser.hasContextTag.

hasContextTagback to summary
public boolean hasContextTag(int tagNo)

Implements org.bouncycastle.asn1.ASN1TaggedObjectParser.hasContextTag.

hasTagback to summary
public boolean hasTag(int tagClass, int tagNo)

Implements org.bouncycastle.asn1.ASN1TaggedObjectParser.hasTag.

hasTagClassback to summary
public boolean hasTagClass(int tagClass)

Implements org.bouncycastle.asn1.ASN1TaggedObjectParser.hasTagClass.

parseBaseUniversalback to summary
public ASN1Encodable parseBaseUniversal(boolean declaredExplicit, int baseTagNo) throws IOException

Implements org.bouncycastle.asn1.ASN1TaggedObjectParser.parseBaseUniversal.

parseExplicitBaseObjectback to summary
public ASN1Encodable parseExplicitBaseObject() throws IOException

Implements org.bouncycastle.asn1.ASN1TaggedObjectParser.parseExplicitBaseObject.

Doc from org.bouncycastle.asn1.ASN1TaggedObjectParser.parseExplicitBaseObject.

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

Implements org.bouncycastle.asn1.ASN1TaggedObjectParser.parseExplicitBaseTagged.

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

Implements org.bouncycastle.asn1.ASN1TaggedObjectParser.parseImplicitBaseTagged.

toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Return an ASN1TaggedObject representing this parser and its contents.

Returns:ASN1Primitive

an ASN1TaggedObject