Top Description Fields Constructors Methods
org.bouncycastle.asn1

public Class BERTaggedObjectParser

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

Parser for indefinite-length tagged objects.

Field Summary

Modifier and TypeField and Description
private boolean
private ASN1StreamParser
private int

Constructor Summary

AccessConstructor and Description
pack-priv
BERTaggedObjectParser(boolean constructed, int tagNumber, 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 ASN1Encodable

Returns:

an ASN.1 encodable object parser.
getObjectParser
(int
the actual tag number of the object (needed if implicit).
tag
,
boolean
true if the contained object was explicitly tagged, false if implicit.
isExplicit
)

Implements org.bouncycastle.asn1.ASN1TaggedObjectParser.getObjectParser.

Return an object parser for the contents of this tagged object.
public int

Returns:

the tag number.
getTagNo
()

Implements org.bouncycastle.asn1.ASN1TaggedObjectParser.getTagNo.

Return the tag number associated with this object.
public boolean

Returns:

true if constructed, false otherwise.
isConstructed
()

Return true if this tagged object is marked as constructed.

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

_constructedback to summary
private boolean _constructed
_parserback to summary
private ASN1StreamParser _parser
_tagNumberback to summary
private int _tagNumber

Constructor Detail

BERTaggedObjectParserback to summary
pack-priv BERTaggedObjectParser(boolean constructed, int tagNumber, 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.
getObjectParserback to summary
public ASN1Encodable getObjectParser(int tag, boolean isExplicit) throws IOException

Implements org.bouncycastle.asn1.ASN1TaggedObjectParser.getObjectParser.

Return an object parser for the contents of this tagged object.

Parameters
tag:int

the actual tag number of the object (needed if implicit).

isExplicit:boolean

true if the contained object was explicitly tagged, false if implicit.

Returns:ASN1Encodable

an ASN.1 encodable object parser.

Exceptions
IOException:
if there is an issue building the object parser from the stream.
getTagNoback to summary
public int getTagNo()

Implements org.bouncycastle.asn1.ASN1TaggedObjectParser.getTagNo.

Return the tag number associated with this object.

Returns:int

the tag number.

isConstructedback to summary
public boolean isConstructed()

Return true if this tagged object is marked as constructed.

Returns:boolean

true if constructed, false otherwise.

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