Class ASN1ApplicationSpecific

  • All Implemented Interfaces:
    io.anyline.nfc.bouncycastle.asn1.ASN1ApplicationSpecificParser , io.anyline.nfc.bouncycastle.asn1.ASN1Encodable , io.anyline.nfc.bouncycastle.asn1.ASN1TaggedObjectParser , io.anyline.nfc.bouncycastle.asn1.InMemoryRepresentable , io.anyline.nfc.bouncycastle.util.Encodable

    
    public abstract class ASN1ApplicationSpecific
    extends ASN1Primitive implements ASN1ApplicationSpecificParser
                        

    Base class for an ASN.1 ApplicationSpecific object

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      ASN1TaggedObject getTaggedObject() ASN1ApplicationSpecific uses an internal ASN1TaggedObject for the implementation, and will soon be deprecated in favour of using ASN1TaggedObject with a tag class of APPLICATION.
      static ASN1ApplicationSpecific getInstance(Object obj) Return an ASN1ApplicationSpecific from the passed in object, which may be a byte array, or null.
      int getApplicationTag() Return the tag number associated with this object,
      Array<byte> getContents() Return the contents of this object as a byte[]
      final ASN1Primitive getLoadedObject() Get the in-memory representation of the ASN.1 object.
      ASN1Primitive getObject() Return the enclosed object assuming explicit tagging.
      ASN1Primitive getEnclosedObject() Return the enclosed object assuming explicit tagging.
      ASN1Primitive getObject(int tagNo) Return the enclosed object assuming implicit tagging.
      ASN1Encodable getObjectParser(int tag, boolean isExplicit) Return a parser for the actual object tagged.
      ASN1Encodable parseBaseUniversal(boolean declaredExplicit, int baseTagNo)
      int getTagClass() Return the tag class associated with this object.
      int getTagNo() Return the tag number associated with this object.
      boolean hasApplicationTag(int tagNo)
      boolean hasContextTag(int tagNo)
      boolean hasTag(int tagClass, int tagNo)
      int hashCode()
      boolean isConstructed() Return true if the object is marked as constructed, false otherwise.
      ASN1Encodable readObject() Read the next object in the parser.
      • Methods inherited from class io.anyline.nfc.bouncycastle.asn1.ASN1Primitive

        encodeTo, encodeTo, equals, equals, equals, fromByteArray, toASN1Primitive
      • Methods inherited from class io.anyline.nfc.bouncycastle.asn1.ASN1Object

        equals, getEncoded, getEncoded
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getTaggedObject

         ASN1TaggedObject getTaggedObject()

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

      • getInstance

         static ASN1ApplicationSpecific getInstance(Object obj)

        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

         int getApplicationTag()

        Return the tag number associated with this object,

        Returns:

        the application tag number.

      • getContents

         Array<byte> getContents()

        Return the contents of this object as a byte[]

        Returns:

        the encoded contents of the object.

      • getLoadedObject

         final ASN1Primitive getLoadedObject()

        Get the in-memory representation of the ASN.1 object.

        Returns:

        an ASN1Primitive representing the loaded object.

      • getObject

         ASN1Primitive getObject()

        Return the enclosed object assuming explicit tagging.

        Returns:

        the resulting object

      • getObject

         ASN1Primitive getObject(int tagNo)

        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

      • getObjectParser

         ASN1Encodable getObjectParser(int tag, boolean isExplicit)

        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.

      • 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.

      • hasTag

         boolean hasTag(int tagClass, int tagNo)
      • isConstructed

         boolean isConstructed()

        Return true if the object is marked as constructed, false otherwise.

        Returns:

        true if constructed, otherwise false.