Class CryptoAPIEncryptor.CryptoAPICipherOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable
    Enclosing class:
    CryptoAPIEncryptor

    protected class CryptoAPIEncryptor.CryptoAPICipherOutputStream
    extends ChunkedCipherOutputStream
    • Method Detail

      • initCipherForBlock

        protected javax.crypto.Cipher initCipherForBlock​(javax.crypto.Cipher cipher,
                                                         int block,
                                                         boolean lastChunk)
                                                  throws java.io.IOException,
                                                         java.security.GeneralSecurityException
        Specified by:
        initCipherForBlock in class ChunkedCipherOutputStream
        Throws:
        java.io.IOException
        java.security.GeneralSecurityException
      • flush

        public void flush()
                   throws java.io.IOException
        Specified by:
        flush in interface java.io.Flushable
        Overrides:
        flush in class java.io.FilterOutputStream
        Throws:
        java.io.IOException