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, setSecretKey
protected CryptoAPIEncryptor(CryptoAPIEncryptionInfoBuilder builder)
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
public OutputStream getDataStream(DirectoryNode dir) throws IOException, GeneralSecurityException
getDataStream
in class Encryptor
dir
- the node to write toIOException
GeneralSecurityException
protected int getKeySizeInBytes()
protected void createEncryptionInfoEntry(DirectoryNode dir) throws IOException
IOException
Copyright © 2007-2019. All Rights Reserved.