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 TypeMethodDescriptionint
Return the tag class associated with this object.int
getTagNo()
Return the tag number associated with this object.boolean
boolean
hasContextTag
(int tagNo) boolean
hasTag
(int tagClass, int tagNo) boolean
hasTagClass
(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
toASN1Primitive
Methods 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 tagclass
andnumber
.- Throws:
IOException
-
parseExplicitBaseTagged
- Throws:
IOException
-
parseImplicitBaseTagged
- Throws:
IOException
-