org.apache.poi.poifs.crypt.cryptoapi
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
- Enclosing class:
- CryptoAPIEncryptor
protected class CryptoAPIEncryptor.CryptoAPICipherOutputStream
- extends ChunkedCipherOutputStream
Fields inherited from class java.io.FilterOutputStream |
out |
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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CryptoAPIEncryptor.CryptoAPICipherOutputStream
public CryptoAPIEncryptor.CryptoAPICipherOutputStream(java.io.OutputStream stream)
throws java.io.IOException,
java.security.GeneralSecurityException
- Throws:
java.io.IOException
java.security.GeneralSecurityException
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
calculateChecksum
protected void calculateChecksum(java.io.File file,
int i)
- Specified by:
calculateChecksum
in class ChunkedCipherOutputStream
createEncryptionInfoEntry
protected void createEncryptionInfoEntry(DirectoryNode dir,
java.io.File tmpFile)
throws java.io.IOException,
java.security.GeneralSecurityException
- Specified by:
createEncryptionInfoEntry
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