Class BEROctetStringGenerator

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      BEROctetStringGenerator(OutputStream out) Use the passed in stream as the target for the generator, writing out the header tag for a constructed OCTET STRING.
      BEROctetStringGenerator(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 OCTET STRING (possibly implicit).
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      OutputStream getOctetOutputStream() Return a stream representing the content target for this OCTET STRING
      OutputStream getOctetOutputStream(Array<byte> buf) Return a stream representing the content target for this OCTET STRING
      • 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

      • BEROctetStringGenerator

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

        BEROctetStringGenerator(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 OCTET STRING (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

      • getOctetOutputStream

         OutputStream getOctetOutputStream()

        Return a stream representing the content target for this OCTET STRING

        Returns:

        an OutputStream which chunks data in blocks of 1000 (CER limit).

      • getOctetOutputStream

         OutputStream getOctetOutputStream(Array<byte> buf)

        Return a stream representing the content target for this OCTET STRING

        Parameters:
        buf - the buffer to use for chunking the data.
        Returns:

        an OutputStream which chunks data in blocks of buf length.