Package io.anyline.nfc.bouncycastle.asn1
Class BERTaggedObjectParser
-
- All Implemented Interfaces:
-
io.anyline.nfc.bouncycastle.asn1.ASN1Encodable
,io.anyline.nfc.bouncycastle.asn1.ASN1TaggedObjectParser
,io.anyline.nfc.bouncycastle.asn1.InMemoryRepresentable
public class BERTaggedObjectParser implements ASN1TaggedObjectParser
Parser for indefinite-length tagged objects.
-
-
Method Summary
Modifier and Type Method Description int
getTagClass()
Return the tag class associated with this object. int
getTagNo()
Return the tag number associated with this object. boolean
hasContextTag(int tagNo)
boolean
hasTag(int tagClass, int tagNo)
boolean
isConstructed()
Return true if this tagged object is marked as constructed. ASN1Encodable
getObjectParser(int tag, boolean isExplicit)
Return an object parser for the contents of this tagged object. ASN1Primitive
getLoadedObject()
Return an in-memory, encodable, representation of the tagged object. ASN1Encodable
parseBaseUniversal(boolean declaredExplicit, int baseTagNo)
ASN1Primitive
toASN1Primitive()
Return an ASN1TaggedObject representing this parser and its contents. -
-
Method Detail
-
getTagClass
int getTagClass()
Return the tag class associated with this object.
- Returns:
the tag class.
-
getTagNo
int getTagNo()
Return the tag number associated with this object.
- Returns:
the tag number.
-
hasContextTag
boolean hasContextTag(int tagNo)
-
hasTag
boolean hasTag(int tagClass, int tagNo)
-
isConstructed
boolean isConstructed()
Return true if this tagged object is marked as constructed.
- Returns:
true if constructed, false otherwise.
-
getObjectParser
ASN1Encodable getObjectParser(int tag, boolean isExplicit)
Return an object parser for the contents of this tagged object.
- 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.
-
getLoadedObject
ASN1Primitive getLoadedObject()
Return an in-memory, encodable, representation of the tagged object.
- Returns:
an ASN1TaggedObject.
-
parseBaseUniversal
ASN1Encodable parseBaseUniversal(boolean declaredExplicit, int baseTagNo)
-
toASN1Primitive
ASN1Primitive toASN1Primitive()
Return an ASN1TaggedObject representing this parser and its contents.
- Returns:
an ASN1TaggedObject
-
-
-
-