Class ASN1ApplicationSpecific

    • Method Detail

      • getInstance

        public static ASN1ApplicationSpecific getInstance​(java.lang.Object obj)
        Deprecated.
        Return an ASN1ApplicationSpecific from the passed in object, which may be a byte array, or null.
        Parameters:
        obj - the object to be converted.
        Returns:
        obj's representation as an ASN1ApplicationSpecific object.
      • getApplicationTag

        public int getApplicationTag()
        Deprecated.
        Return the tag number associated with this object,
        Returns:
        the application tag number.
      • getContents

        public byte[] getContents()
        Deprecated.
        Return the contents of this object as a byte[]
        Returns:
        the encoded contents of the object.
      • getEnclosedObject

        public ASN1Primitive getEnclosedObject()
                                        throws java.io.IOException
        Deprecated.
        Return the enclosed object assuming explicit tagging.
        Returns:
        the resulting object
        Throws:
        java.io.IOException - if reconstruction fails.
      • getObject

        public ASN1Primitive getObject​(int tagNo)
                                throws java.io.IOException
        Deprecated.
        Return the enclosed object assuming implicit tagging.
        Parameters:
        tagNo - the type tag that should be applied to the object's contents.
        Returns:
        the resulting object
        Throws:
        java.io.IOException - if reconstruction fails.
      • getObjectParser

        public ASN1Encodable getObjectParser​(int tag,
                                             boolean isExplicit)
                                      throws java.io.IOException
        Deprecated.
        Description copied from interface: ASN1TaggedObjectParser
        Return a parser for the actual object tagged.
        Specified by:
        getObjectParser in interface ASN1TaggedObjectParser
        Overrides:
        getObjectParser in class ASN1TaggedObject
        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.
      • hasApplicationTag

        public boolean hasApplicationTag​(int tagNo)
        Deprecated.
      • getTaggedObject

        public ASN1TaggedObject getTaggedObject()
        Deprecated.
        ASN1ApplicationSpecific uses an internal ASN1TaggedObject for the implementation, and will soon be deprecated in favour of using ASN1TaggedObject with a tag class of BERTags.APPLICATION. This method lets you get the internal ASN1TaggedObject so that client code can begin the migration.
      • isConstructed

        public boolean isConstructed()
        Deprecated.
        Return true if the object is marked as constructed, false otherwise.
        Returns:
        true if constructed, otherwise false.