ASN1TaggedObjectParser.public class BERTaggedObjectParser extends java.lang.Object implements ASN1TaggedObjectParser
| Modifier and Type | Method and Description |
|---|---|
ASN1Primitive |
getLoadedObject()
Deprecated.
Return an in-memory, encodable, representation of the tagged object.
|
ASN1Encodable |
getObjectParser(int tag,
boolean isExplicit)
Deprecated.
|
int |
getTagClass()
Deprecated.
Return the tag class associated with this object.
|
int |
getTagNo()
Deprecated.
Return the tag number associated with this object.
|
boolean |
hasContextTag(int tagNo)
Deprecated.
|
boolean |
hasTag(int tagClass,
int tagNo)
Deprecated.
|
boolean |
isConstructed()
Deprecated.
Return true if this tagged object is marked as constructed.
|
ASN1Encodable |
parseBaseUniversal(boolean declaredExplicit,
int baseTagNo)
Deprecated.
|
ASN1Encodable |
parseExplicitBaseObject()
Deprecated.
Needed for open types, until we have better type-guided parsing support.
|
ASN1TaggedObjectParser |
parseExplicitBaseTagged()
Deprecated.
|
ASN1TaggedObjectParser |
parseImplicitBaseTagged(int baseTagClass,
int baseTagNo)
Deprecated.
|
ASN1Primitive |
toASN1Primitive()
Deprecated.
Return an ASN1TaggedObject representing this parser and its contents.
|
public int getTagClass()
ASN1TaggedObjectParsergetTagClass in interface ASN1TaggedObjectParserpublic int getTagNo()
ASN1TaggedObjectParsergetTagNo in interface ASN1TaggedObjectParserpublic boolean hasContextTag(int tagNo)
hasContextTag in interface ASN1TaggedObjectParserpublic boolean hasTag(int tagClass,
int tagNo)
hasTag in interface ASN1TaggedObjectParserpublic boolean isConstructed()
public ASN1Encodable getObjectParser(int tag, boolean isExplicit) throws java.io.IOException
ASN1TaggedObjectParser.getObjectParser(int, boolean).getObjectParser in interface ASN1TaggedObjectParsertag - the actual tag number of the object (needed if implicit).isExplicit - true if the contained object was explicitly tagged, false
if implicit.java.io.IOException - if there is an issue building the object parser from the
stream.public ASN1Primitive getLoadedObject() throws java.io.IOException
getLoadedObject in interface InMemoryRepresentablejava.io.IOException - if there is an issue loading the data.public ASN1Encodable parseBaseUniversal(boolean declaredExplicit, int baseTagNo) throws java.io.IOException
parseBaseUniversal in interface ASN1TaggedObjectParserjava.io.IOExceptionpublic ASN1Encodable parseExplicitBaseObject() throws java.io.IOException
ASN1TaggedObjectParserASN1TaggedObjectParser.parseExplicitBaseTagged() or ASN1TaggedObjectParser.parseBaseUniversal(boolean, int)
where possible. Before using, check for matching tag class and
number.parseExplicitBaseObject in interface ASN1TaggedObjectParserjava.io.IOExceptionpublic ASN1TaggedObjectParser parseExplicitBaseTagged() throws java.io.IOException
parseExplicitBaseTagged in interface ASN1TaggedObjectParserjava.io.IOExceptionpublic ASN1TaggedObjectParser parseImplicitBaseTagged(int baseTagClass, int baseTagNo) throws java.io.IOException
parseImplicitBaseTagged in interface ASN1TaggedObjectParserjava.io.IOExceptionpublic ASN1Primitive toASN1Primitive()
toASN1Primitive in interface ASN1Encodable