Modifier and Type | Method and Description |
---|---|
CryptoAPIEncryptor |
clone() |
void |
confirmPassword(String password) |
void |
confirmPassword(String password,
byte[] keySpec,
byte[] keySalt,
byte[] verifier,
byte[] verifierSalt,
byte[] integritySalt) |
ChunkedCipherOutputStream |
getDataStream(DirectoryNode dir)
Return a output stream for encrypted data.
|
org.apache.poi.poifs.crypt.cryptoapi.CryptoAPIEncryptor.CryptoAPICipherOutputStream |
getDataStream(OutputStream stream,
int initialOffset) |
Cipher |
initCipherForBlock(Cipher cipher,
int block)
Initializes a cipher object for a given block index for encryption
|
void |
setChunkSize(int chunkSize)
Sets the chunk size of the data stream.
|
void |
setSummaryEntries(DirectoryNode dir,
String encryptedStream,
POIFSFileSystem entries)
Encrypt the Document-/SummaryInformation and other optionally streams.
|
getDataStream, getEncryptionInfo, getInstance, getSecretKey, setEncryptionInfo, setSecretKey
public void confirmPassword(String password)
confirmPassword
in class Encryptor
public void confirmPassword(String password, byte[] keySpec, byte[] keySalt, byte[] verifier, byte[] verifierSalt, byte[] integritySalt)
confirmPassword
in class Encryptor
public Cipher initCipherForBlock(Cipher cipher, int block) throws GeneralSecurityException
cipher
- may be null, otherwise the given instance is reset to the new block indexblock
- the block index, e.g. the persist/slide id (hslf)GeneralSecurityException
- when the cipher can't be initializedpublic ChunkedCipherOutputStream getDataStream(DirectoryNode dir) throws IOException
Encryptor
getDataStream
in class Encryptor
dir
- the node to write toIOException
public org.apache.poi.poifs.crypt.cryptoapi.CryptoAPIEncryptor.CryptoAPICipherOutputStream getDataStream(OutputStream stream, int initialOffset) throws IOException, GeneralSecurityException
getDataStream
in class Encryptor
IOException
GeneralSecurityException
public void setSummaryEntries(DirectoryNode dir, String encryptedStream, POIFSFileSystem entries) throws IOException, GeneralSecurityException
public void setChunkSize(int chunkSize)
Encryptor
setChunkSize
in class Encryptor
chunkSize
- the chunk size, i.e. the block size with the same encryption keypublic CryptoAPIEncryptor clone() throws CloneNotSupportedException
clone
in class Encryptor
CloneNotSupportedException
Copyright © 2010 - 2020 Adobe. All Rights Reserved