| Modifier and Type | Class and Description |
|---|---|
| protected class |
| Modifier and Type | Field and Description |
|---|---|
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | confirmPassword(String password)
Implements abstract org.
|
| public void | confirmPassword(String password, byte[] keySpec, byte[] keySalt, byte[] verifier, byte[] verifierSalt, byte[] integritySalt)
Implements abstract org.
|
| public CryptoAPIEncryptor | |
| public ChunkedCipherOutputStream | getDataStream(DirectoryNode
the node to write to dir)Implements abstract org. Return an output stream for encrypted data. |
| public CryptoAPIEncryptor. | getDataStream(OutputStream stream, int initialOffset)
Overrides org.
|
| public Cipher | Returns: a new cipher object, if cipher was null, otherwise the reinitialized ciphermay be null, otherwise the given instance is reset to the new block index cipher, int the block index, e.g. the persist/slide id (hslf) block)Initializes a cipher object for a given block index for encryption |
| public void | setChunkSize(int
the chunk size, i.e. the block size with the same encryption key chunkSize)Overrides org. Sets the chunk size of the data stream. |
| public void | setSummaryEntries(DirectoryNode dir, String encryptedStream, POIFSFileSystem entries)
Encrypt the Document-/SummaryInformation and other optionally streams. |
| chunkSize | back to summary |
|---|---|
| private int chunkSize | |
| CryptoAPIEncryptor | back to summary |
|---|---|
| pack-priv CryptoAPIEncryptor() | |
| CryptoAPIEncryptor | back to summary |
|---|---|
| pack-priv CryptoAPIEncryptor(CryptoAPIEncryptor other) | |
| confirmPassword | back to summary |
|---|---|
| public void confirmPassword(String password) Implements abstract org.
| |
| confirmPassword | back to summary |
|---|---|
| public void confirmPassword(String password, byte[] keySpec, byte[] keySalt, byte[] verifier, byte[] verifierSalt, byte[] integritySalt) Implements abstract org.
| |
| copy | back to summary |
|---|---|
| public CryptoAPIEncryptor copy() Implements abstract org.
| |
| getDataStream | back to summary |
|---|---|
| public ChunkedCipherOutputStream getDataStream(DirectoryNode dir) throws IOException Implements abstract org. Doc from org. Return an output stream for encrypted data.
| |
| getDataStream | back to summary |
|---|---|
| public CryptoAPIEncryptor. Overrides org.
| |
| initCipherForBlock | back to summary |
|---|---|
| public Cipher initCipherForBlock(Cipher cipher, int block) throws GeneralSecurityException Initializes a cipher object for a given block index for encryption
| |
| setChunkSize | back to summary |
|---|---|
| public void setChunkSize(int chunkSize) Overrides org. Doc from org. Sets the chunk size of the data stream. Needs to be set before the data stream is requested. When not set, the implementation uses method specific default values
| |
| setSummaryEntries | back to summary |
|---|---|
| public void setSummaryEntries(DirectoryNode dir, String encryptedStream, POIFSFileSystem entries) throws IOException, GeneralSecurityException Encrypt the Document-/SummaryInformation and other optionally streams. Opposed to other crypto modes, cryptoapi is record based and can't be used to stream-encrypt a whole file | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected void | calculateChecksum(File file, int i)
Implements abstract org.
|
| protected void | createEncryptionInfoEntry(DirectoryNode dir, File tmpFile)
Implements abstract org.
|
| public void | flush()
Overrides java. Implements java. Flushes this output stream and forces any buffered output bytes to be written out to the stream. |
| protected Cipher | initCipherForBlock(Cipher cipher, int block, boolean lastChunk)
Implements abstract org.
|
| protected Cipher | initCipherForBlockNoFlush(Cipher existing, int block, boolean lastChunk)
Overrides org.
|
| CryptoAPICipherOutputStream | back to summary |
|---|---|
| pack-priv CryptoAPICipherOutputStream(OutputStream stream) throws IOException, GeneralSecurityException | |
| calculateChecksum | back to summary |
|---|---|
| protected void calculateChecksum(File file, int i) Implements abstract org.
| |
| createEncryptionInfoEntry | back to summary |
|---|---|
| protected void createEncryptionInfoEntry(DirectoryNode dir, File tmpFile) Implements abstract org.
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Overrides java. Implements java. Doc from java. Flushes this output stream and forces any buffered output bytes to be written out to the stream.
| |
| initCipherForBlock | back to summary |
|---|---|
| protected Cipher initCipherForBlock(Cipher cipher, int block, boolean lastChunk) throws IOException, GeneralSecurityException Implements abstract org.
| |
| initCipherForBlockNoFlush | back to summary |
|---|---|
| protected Cipher initCipherForBlockNoFlush(Cipher existing, int block, boolean lastChunk) throws GeneralSecurityException Overrides org.
| |