Class CryptoAPIEncryptor.CryptoAPICipherOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.apache.poi.poifs.crypt.ChunkedCipherOutputStream
org.apache.poi.poifs.crypt.cryptoapi.CryptoAPIEncryptor.CryptoAPICipherOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Enclosing class:
- CryptoAPIEncryptor
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
calculateChecksum
(File file, int i) protected void
createEncryptionInfoEntry
(DirectoryNode dir, File tmpFile) void
flush()
protected Cipher
initCipherForBlock
(Cipher cipher, int block, boolean lastChunk) Methods inherited from class org.apache.poi.poifs.crypt.ChunkedCipherOutputStream
close, getChunk, getChunkMask, getPlainByteFlags, getPos, getTotalPos, initCipherForBlock, invokeCipher, setNextRecordSize, write, write, write, write, writeChunk, writePlain
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Method Details
-
initCipherForBlock
protected Cipher initCipherForBlock(Cipher cipher, int block, boolean lastChunk) throws IOException, GeneralSecurityException - Specified by:
initCipherForBlock
in classChunkedCipherOutputStream
- Throws:
IOException
GeneralSecurityException
-
calculateChecksum
- Specified by:
calculateChecksum
in classChunkedCipherOutputStream
-
createEncryptionInfoEntry
- Specified by:
createEncryptionInfoEntry
in classChunkedCipherOutputStream
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classFilterOutputStream
- Throws:
IOException
-