org.bouncycastle.asn1
Interface ASN1TaggedObjectParser
- All Superinterfaces:
- ASN1Encodable, InMemoryRepresentable
- All Known Implementing Classes:
- ASN1TaggedObject
- public interface ASN1TaggedObjectParser
- extends ASN1Encodable, InMemoryRepresentable
Interface for the parsing of a generic tagged ASN.1 object.
getTagClass
public int getTagClass()
- Return the tag class associated with this object.
- Returns:
- the tag class.
getTagNo
public int getTagNo()
- Return the tag number associated with this object.
- Returns:
- the tag number.
hasContextTag
public boolean hasContextTag()
hasContextTag
public boolean hasContextTag(int tagNo)
hasTag
public boolean hasTag(int tagClass,
int tagNo)
hasTagClass
public boolean hasTagClass(int tagClass)
parseBaseUniversal
public ASN1Encodable parseBaseUniversal(boolean declaredExplicit,
int baseTagNo)
throws java.io.IOException
parseExplicitBaseObject
public ASN1Encodable parseExplicitBaseObject()
throws java.io.IOException
- Needed for open types, until we have better type-guided parsing support. Use sparingly for other
purposes, and prefer
parseExplicitBaseTagged()
or parseBaseUniversal(boolean, int)
where possible. Before using, check for matching tag class
and
number
.
parseExplicitBaseTagged
public ASN1TaggedObjectParser parseExplicitBaseTagged()
throws java.io.IOException
parseImplicitBaseTagged
public ASN1TaggedObjectParser parseImplicitBaseTagged(int baseTagClass,
int baseTagNo)
throws java.io.IOException