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