Class BERTaggedObjectParser

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

    
    public class BERTaggedObjectParser
     implements ASN1TaggedObjectParser
                        

    Parser for indefinite-length tagged objects.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      int getTagClass() Return the tag class associated with this object.
      int getTagNo() Return the tag number associated with this object.
      boolean hasContextTag(int tagNo)
      boolean hasTag(int tagClass, int tagNo)
      boolean isConstructed() Return true if this tagged object is marked as constructed.
      ASN1Encodable getObjectParser(int tag, boolean isExplicit) Return an object parser for the contents of this tagged object.
      ASN1Primitive getLoadedObject() Return an in-memory, encodable, representation of the tagged object.
      ASN1Encodable parseBaseUniversal(boolean declaredExplicit, int baseTagNo)
      ASN1Primitive toASN1Primitive() Return an ASN1TaggedObject representing this parser and its contents.
      • Methods inherited from class java.lang.Object

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

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

      • hasTag

         boolean hasTag(int tagClass, int tagNo)
      • isConstructed

         boolean isConstructed()

        Return true if this tagged object is marked as constructed.

        Returns:

        true if constructed, false otherwise.

      • getObjectParser

         ASN1Encodable getObjectParser(int tag, boolean isExplicit)

        Return an object parser for the contents of this tagged object.

        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.

      • getLoadedObject

         ASN1Primitive getLoadedObject()

        Return an in-memory, encodable, representation of the tagged object.

        Returns:

        an ASN1TaggedObject.

      • toASN1Primitive

         ASN1Primitive toASN1Primitive()

        Return an ASN1TaggedObject representing this parser and its contents.

        Returns:

        an ASN1TaggedObject