public class CryptoAPIEncryptor extends Encryptor
DEFAULT_POIFS_ENTRY| Modifier | Constructor and Description |
|---|---|
protected |
CryptoAPIEncryptor(CryptoAPIEncryptionInfoBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
void |
confirmPassword(String password) |
void |
confirmPassword(String password,
byte[] keySpec,
byte[] keySalt,
byte[] verifier,
byte[] verifierSalt,
byte[] integritySalt) |
protected void |
createEncryptionInfoEntry(DirectoryNode dir) |
OutputStream |
getDataStream(DirectoryNode dir)
Encrypt the Document-/SummaryInformation and other optionally streams.
|
protected int |
getKeySizeInBytes() |
Cipher |
initCipherForBlock(Cipher cipher,
int block)
Initializes a cipher object for a given block index for encryption
|
getDataStream, getDataStream, getDataStream, getInstance, getSecretKey, setSecretKeyprotected CryptoAPIEncryptor(CryptoAPIEncryptionInfoBuilder builder)
public void confirmPassword(String password)
confirmPassword in class Encryptorpublic void confirmPassword(String password, byte[] keySpec, byte[] keySalt, byte[] verifier, byte[] verifierSalt, byte[] integritySalt)
confirmPassword in class Encryptorpublic 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)GeneralSecurityExceptionpublic OutputStream getDataStream(DirectoryNode dir) throws IOException, GeneralSecurityException
getDataStream in class Encryptordir - the node to write toIOExceptionGeneralSecurityExceptionprotected int getKeySizeInBytes()
protected void createEncryptionInfoEntry(DirectoryNode dir) throws IOException
IOExceptionCopyright © 2007-2020. All Rights Reserved.