Interface ASN1TaggedObjectParser

    • Method Detail

      • 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​(int tagNo)
      • hasTag

        boolean hasTag​(int tagClass,
                       int tagNo)
      • getObjectParser

        ASN1Encodable getObjectParser​(int tag,
                                      boolean isExplicit)
                               throws java.io.IOException
        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).
        Return a parser for the actual object tagged.
        Parameters:
        tag - the primitive tag value for the object tagged originally.
        isExplicit - true if the tagging was done explicitly.
        Returns:
        a parser for the tagged object.
        Throws:
        java.io.IOException - if a parser cannot be constructed.
      • parseBaseUniversal

        ASN1Encodable parseBaseUniversal​(boolean declaredExplicit,
                                         int baseTagNo)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • parseExplicitBaseTagged

        ASN1TaggedObjectParser parseExplicitBaseTagged()
                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • parseImplicitBaseTagged

        ASN1TaggedObjectParser parseImplicitBaseTagged​(int baseTagClass,
                                                       int baseTagNo)
                                                throws java.io.IOException
        Throws:
        java.io.IOException