Package org.bouncycastle.asn1
Class BERTaggedObjectParser
java.lang.Object
org.bouncycastle.asn1.BERTaggedObjectParser
- All Implemented Interfaces:
ASN1Encodable
,ASN1TaggedObjectParser
,InMemoryRepresentable
- Direct Known Subclasses:
BERApplicationSpecificParser
Deprecated.
Parser for indefinite-length tagged objects.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Return an in-memory, encodable, representation of the tagged object.getObjectParser
(int tag, boolean isExplicit) Deprecated.int
Deprecated.Return the tag class associated with this object.int
getTagNo()
Deprecated.Return the tag number associated with this object.boolean
hasContextTag
(int tagNo) Deprecated.boolean
hasTag
(int tagClass, int tagNo) Deprecated.boolean
Deprecated.Return true if this tagged object is marked as constructed.parseBaseUniversal
(boolean declaredExplicit, int baseTagNo) Deprecated.Deprecated.Needed for open types, until we have better type-guided parsing support.Deprecated.parseImplicitBaseTagged
(int baseTagClass, int baseTagNo) Deprecated.Deprecated.Return an ASN1TaggedObject representing this parser and its contents.
-
Method Details
-
getTagClass
public int getTagClass()Deprecated.Description copied from interface:ASN1TaggedObjectParser
Return the tag class associated with this object.- Specified by:
getTagClass
in interfaceASN1TaggedObjectParser
- Returns:
- the tag class.
-
getTagNo
public int getTagNo()Deprecated.Description copied from interface:ASN1TaggedObjectParser
Return the tag number associated with this object.- Specified by:
getTagNo
in interfaceASN1TaggedObjectParser
- Returns:
- the tag number.
-
hasContextTag
public boolean hasContextTag(int tagNo) Deprecated.- Specified by:
hasContextTag
in interfaceASN1TaggedObjectParser
-
hasTag
public boolean hasTag(int tagClass, int tagNo) Deprecated.- Specified by:
hasTag
in interfaceASN1TaggedObjectParser
-
isConstructed
public boolean isConstructed()Deprecated.Return true if this tagged object is marked as constructed.- Returns:
- true if constructed, false otherwise.
-
getObjectParser
Deprecated.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
Deprecated.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.
-
parseBaseUniversal
Deprecated.- Specified by:
parseBaseUniversal
in interfaceASN1TaggedObjectParser
- Throws:
IOException
-
parseExplicitBaseObject
Deprecated.Description copied from interface:ASN1TaggedObjectParser
Needed for open types, until we have better type-guided parsing support. Use sparingly for other purposes, and preferASN1TaggedObjectParser.parseExplicitBaseTagged()
orASN1TaggedObjectParser.parseBaseUniversal(boolean, int)
where possible. Before using, check for matching tagclass
andnumber
.- Specified by:
parseExplicitBaseObject
in interfaceASN1TaggedObjectParser
- Throws:
IOException
-
parseExplicitBaseTagged
Deprecated.- Specified by:
parseExplicitBaseTagged
in interfaceASN1TaggedObjectParser
- Throws:
IOException
-
parseImplicitBaseTagged
public ASN1TaggedObjectParser parseImplicitBaseTagged(int baseTagClass, int baseTagNo) throws IOException Deprecated.- Specified by:
parseImplicitBaseTagged
in interfaceASN1TaggedObjectParser
- Throws:
IOException
-
toASN1Primitive
Deprecated.Return an ASN1TaggedObject representing this parser and its contents.- Specified by:
toASN1Primitive
in interfaceASN1Encodable
- Returns:
- an ASN1TaggedObject
-
ASN1TaggedObjectParser
.