Class BERTaggedObjectParser

    • Method Detail

      • isConstructed

        public boolean isConstructed()
        Return true if this tagged object is marked as constructed.
        Returns:
        true if constructed, false otherwise.
      • getTagNo

        public int getTagNo()
        Return the tag number associated with this object.
        Specified by:
        getTagNo in interface ASN1TaggedObjectParser
        Returns:
        the tag number.
      • getObjectParser

        public ASN1Encodable getObjectParser​(int tag,
                                             boolean isExplicit)
                                      throws IOException
        Return an object parser for the contents of this tagged object.
        Specified by:
        getObjectParser in interface ASN1TaggedObjectParser
        Parameters:
        tag - the actual tag number of the object (needed if implicit).
        isExplicit - true if the contained object was explicitly tagged, false if implicit.
        Returns:
        an ASN.1 encodable object parser.
        Throws:
        IOException - if there is an issue building the object parser from the stream.
      • toASN1Primitive

        public ASN1Primitive toASN1Primitive()
        Return an ASN1TaggedObject representing this parser and its contents.
        Specified by:
        toASN1Primitive in interface ASN1Encodable
        Returns:
        an ASN1TaggedObject