Package org.bouncycastle.asn1
Interface ASN1TaggedObjectParser
- All Superinterfaces:
ASN1Encodable,InMemoryRepresentable
- All Known Implementing Classes:
ASN1TaggedObject,BERTaggedObject,DERTaggedObject,DLTaggedObject
Interface for the parsing of a generic tagged ASN.1 object.
-
Method Summary
Modifier and TypeMethodDescriptionintReturn the tag class associated with this object.intgetTagNo()Return the tag number associated with this object.booleanbooleanhasContextTag(int tagNo) booleanhasTag(int tagClass, int tagNo) booleanhasTagClass(int tagClass) parseBaseUniversal(boolean declaredExplicit, int baseTagNo) Needed for open types, until we have better type-guided parsing support.parseImplicitBaseTagged(int baseTagClass, int baseTagNo) Methods inherited from interface org.bouncycastle.asn1.ASN1Encodable
toASN1PrimitiveMethods inherited from interface org.bouncycastle.asn1.InMemoryRepresentable
getLoadedObject
-
Method Details
-
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() -
hasContextTag
boolean hasContextTag(int tagNo) -
hasTag
boolean hasTag(int tagClass, int tagNo) -
hasTagClass
boolean hasTagClass(int tagClass) -
parseBaseUniversal
- Throws:
IOException
-
parseExplicitBaseObject
Needed for open types, until we have better type-guided parsing support. Use sparingly for other purposes, and preferparseExplicitBaseTagged()orparseBaseUniversal(boolean, int)where possible. Before using, check for matching tagclassandnumber.- Throws:
IOException
-
parseExplicitBaseTagged
- Throws:
IOException
-
parseImplicitBaseTagged
- Throws:
IOException
-