public interface ASN1TaggedObjectParser extends ASN1Encodable, InMemoryRepresentable
Modifier and Type | Method and Description |
---|---|
ASN1Encodable |
getObjectParser(int tag,
boolean isExplicit)
Deprecated.
This parser now includes the
tag class .
This method will raise an exception if it is not
BERTags.CONTEXT_SPECIFIC . Use
ASN1Util#parseContextBaseUniversal(ASN1TaggedObjectParser, int, int, boolean, int)
as a direct replacement, or use
parseBaseUniversal(boolean, int) only after confirming
the expected tag class (e.g.
ASN1Util.tryParseContextBaseUniversal(ASN1TaggedObjectParser, int, boolean, int) . |
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) |
ASN1Encodable |
parseBaseUniversal(boolean declaredExplicit,
int baseTagNo) |
ASN1Encodable |
parseExplicitBaseObject()
Needed for open types, until we have better type-guided parsing support.
|
ASN1TaggedObjectParser |
parseExplicitBaseTagged() |
ASN1TaggedObjectParser |
parseImplicitBaseTagged(int baseTagClass,
int baseTagNo) |
toASN1Primitive
getLoadedObject
int getTagClass()
int getTagNo()
boolean hasContextTag(int tagNo)
boolean hasTag(int tagClass, int tagNo)
ASN1Encodable getObjectParser(int tag, boolean isExplicit) throws java.io.IOException
tag class
.
This method will raise an exception if it is not
BERTags.CONTEXT_SPECIFIC
. Use
ASN1Util#parseContextBaseUniversal(ASN1TaggedObjectParser, int, int, boolean, int)
as a direct replacement, or use
parseBaseUniversal(boolean, int)
only after confirming
the expected tag class (e.g.
ASN1Util.tryParseContextBaseUniversal(ASN1TaggedObjectParser, int, boolean, int)
.tag
- the primitive tag value for the object tagged originally.isExplicit
- true if the tagging was done explicitly.java.io.IOException
- if a parser cannot be constructed.ASN1Encodable parseBaseUniversal(boolean declaredExplicit, int baseTagNo) throws java.io.IOException
java.io.IOException
ASN1Encodable parseExplicitBaseObject() throws java.io.IOException
parseExplicitBaseTagged()
or parseBaseUniversal(boolean, int)
where possible. Before using, check for matching tag class
and
number
.java.io.IOException
ASN1TaggedObjectParser parseExplicitBaseTagged() throws java.io.IOException
java.io.IOException
ASN1TaggedObjectParser parseImplicitBaseTagged(int baseTagClass, int baseTagNo) throws java.io.IOException
java.io.IOException