public class AgileEncryptor extends Encryptor
DEFAULT_POIFS_ENTRY
Modifier | Constructor and Description |
---|---|
protected |
AgileEncryptor(AgileEncryptionInfoBuilder 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 CTEncryption |
createEncryptionDocument() |
protected void |
createEncryptionInfoEntry(DirectoryNode dir,
File tmpFile) |
OutputStream |
getDataStream(DirectoryNode dir)
Return a output stream for encrypted data.
|
protected void |
marshallEncryptionDocument(CTEncryption ed,
LittleEndianByteArrayOutputStream os) |
protected void |
updateIntegrityHMAC(File tmpFile,
int oleStreamSize)
Generate an HMAC, as specified in [RFC2104], of the encrypted form of the data (message),
which the DataIntegrity element will verify by using the Salt generated in step 2 as the key.
|
getDataStream, getDataStream, getDataStream, getInstance, getSecretKey, setSecretKey
protected AgileEncryptor(AgileEncryptionInfoBuilder 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 OutputStream getDataStream(DirectoryNode dir) throws IOException, GeneralSecurityException
Encryptor
getDataStream
in class Encryptor
dir
- the node to write toIOException
GeneralSecurityException
protected void updateIntegrityHMAC(File tmpFile, int oleStreamSize) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
protected CTEncryption createEncryptionDocument()
protected void marshallEncryptionDocument(CTEncryption ed, LittleEndianByteArrayOutputStream os)
protected void createEncryptionInfoEntry(DirectoryNode dir, File tmpFile) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
Copyright © 2007-2019. All Rights Reserved.