Package org.bouncycastle.asn1
Class BERTaggedObjectParser
java.lang.Object
org.bouncycastle.asn1.BERTaggedObjectParser
- All Implemented Interfaces:
ASN1Encodable
,ASN1TaggedObjectParser
,InMemoryRepresentable
Parser for indefinite-length tagged objects.
-
Method Summary
Modifier and TypeMethodDescriptionReturn an in-memory, encodable, representation of the tagged object.getObjectParser
(int tag, boolean isExplicit) Return an object parser for the contents of this tagged object.int
getTagNo()
Return the tag number associated with this object.boolean
Return true if this tagged object is marked as constructed.Return an ASN1TaggedObject representing this parser and its contents.
-
Method Details
-
isConstructed
public boolean isConstructed()Return true if this tagged object is marked as constructed.- Returns:
- true if constructed, false otherwise.
-
getTagNo
public int getTagNo()Return the tag number associated with this object.- Specified by:
getTagNo
in interfaceASN1TaggedObjectParser
- Returns:
- the tag number.
-
getObjectParser
Return an object parser for the contents of this tagged object.- Specified by:
getObjectParser
in interfaceASN1TaggedObjectParser
- Parameters:
tag
- the actual tag number of the object (needed if implicit).isExplicit
- true if the contained object was explicitly tagged, false if implicit.- Returns:
- an ASN.1 encodable object parser.
- Throws:
IOException
- if there is an issue building the object parser from the stream.
-
getLoadedObject
Return an in-memory, encodable, representation of the tagged object.- Specified by:
getLoadedObject
in interfaceInMemoryRepresentable
- Returns:
- an ASN1TaggedObject.
- Throws:
IOException
- if there is an issue loading the data.
-
toASN1Primitive
Return an ASN1TaggedObject representing this parser and its contents.- Specified by:
toASN1Primitive
in interfaceASN1Encodable
- Returns:
- an ASN1TaggedObject
-