Class BERSequenceGenerator

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      BERSequenceGenerator(OutputStream out) Use the passed in stream as the target for the generator, writing out the header tag for a constructed SEQUENCE.
      BERSequenceGenerator(OutputStream out, int tagNo, boolean isExplicit) Use the passed in stream as the target for the generator, writing out the header tag for a tagged constructed SEQUENCE (possibly implicit).
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void addObject(ASN1Encodable object) Add an object to the SEQUENCE being generated.
      void addObject(ASN1Primitive primitive) Add an ASN1.1 primitive to the SEQUENCE being generated.
      void close() Close of the generator, writing out the BER end tag.
      • Methods inherited from class io.anyline.nfc.bouncycastle.asn1.BERGenerator

        getRawOutputStream
      • Methods inherited from class java.lang.Object

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

      • BERSequenceGenerator

        BERSequenceGenerator(OutputStream out)
        Use the passed in stream as the target for the generator, writing out the header tag for a constructed SEQUENCE.
        Parameters:
        out - target stream
      • BERSequenceGenerator

        BERSequenceGenerator(OutputStream out, int tagNo, boolean isExplicit)
        Use the passed in stream as the target for the generator, writing out the header tag for a tagged constructed SEQUENCE (possibly implicit).
        Parameters:
        out - target stream
        tagNo - the tag number to introduce
        isExplicit - true if this is an explicitly tagged object, false otherwise.
    • Method Detail

      • addObject

         void addObject(ASN1Encodable object)

        Add an object to the SEQUENCE being generated.

        Parameters:
        object - an ASN.1 encodable object to add.
      • addObject

         void addObject(ASN1Primitive primitive)

        Add an ASN1.1 primitive to the SEQUENCE being generated.

        Parameters:
        primitive - an ASN.1 primitive to add.
      • close

         void close()

        Close of the generator, writing out the BER end tag.