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:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
- Enclosing class:
- CryptoAPIEncryptor
protected class CryptoAPIEncryptor.CryptoAPICipherOutputStream extends ChunkedCipherOutputStream
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcalculateChecksum(java.io.File file, int i)protected voidcreateEncryptionInfoEntry(DirectoryNode dir, java.io.File tmpFile)voidflush()protected javax.crypto.CipherinitCipherForBlock(javax.crypto.Cipher cipher, int block, boolean lastChunk)protected javax.crypto.CipherinitCipherForBlockNoFlush(javax.crypto.Cipher existing, 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
-
-
-
-
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:
initCipherForBlockin classChunkedCipherOutputStream- Throws:
java.io.IOExceptionjava.security.GeneralSecurityException
-
initCipherForBlockNoFlush
protected javax.crypto.Cipher initCipherForBlockNoFlush(javax.crypto.Cipher existing, int block, boolean lastChunk) throws java.security.GeneralSecurityException- Overrides:
initCipherForBlockNoFlushin classChunkedCipherOutputStream- Throws:
java.security.GeneralSecurityException
-
calculateChecksum
protected void calculateChecksum(java.io.File file, int i)- Specified by:
calculateChecksumin classChunkedCipherOutputStream
-
createEncryptionInfoEntry
protected void createEncryptionInfoEntry(DirectoryNode dir, java.io.File tmpFile)
- Specified by:
createEncryptionInfoEntryin classChunkedCipherOutputStream
-
flush
public void flush() throws java.io.IOException- Specified by:
flushin interfacejava.io.Flushable- Overrides:
flushin classjava.io.FilterOutputStream- Throws:
java.io.IOException
-
-