Interface ASN1TaggedObjectParser

All Superinterfaces:
ASN1Encodable, InMemoryRepresentable
All Known Implementing Classes:
ASN1TaggedObject, BERTaggedObject, DERTaggedObject, DLTaggedObject

public interface ASN1TaggedObjectParser extends ASN1Encodable, InMemoryRepresentable
Interface for the parsing of a generic tagged ASN.1 object.
  • 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

      ASN1Encodable parseBaseUniversal(boolean declaredExplicit, int baseTagNo) throws IOException
      Throws:
      IOException
    • parseExplicitBaseObject

      ASN1Encodable parseExplicitBaseObject() throws 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.
      Throws:
      IOException
    • parseExplicitBaseTagged

      ASN1TaggedObjectParser parseExplicitBaseTagged() throws IOException
      Throws:
      IOException
    • parseImplicitBaseTagged

      ASN1TaggedObjectParser parseImplicitBaseTagged(int baseTagClass, int baseTagNo) throws IOException
      Throws:
      IOException