public class AgileEncryptor extends Encryptor
DEFAULT_POIFS_ENTRY| Modifier | Constructor and Description |
|---|---|
protected |
AgileEncryptor() |
protected |
AgileEncryptor(AgileEncryptor other) |
| Modifier and Type | Method and Description |
|---|---|
void |
confirmPassword(String password) |
void |
confirmPassword(String password,
byte[] keySpec,
byte[] keySalt,
byte[] verifier,
byte[] verifierSalt,
byte[] integritySalt) |
AgileEncryptor |
copy() |
protected EncryptionDocument |
createEncryptionDocument() |
OutputStream |
getDataStream(DirectoryNode dir)
Return an output stream for encrypted data.
|
protected void |
marshallEncryptionDocument(EncryptionDocument 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, getEncryptionInfo, getGenericProperties, getInstance, getSecretKey, setChunkSize, setEncryptionInfo, setSecretKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGenericChildren, getGenericRecordTypeprotected AgileEncryptor()
protected AgileEncryptor(AgileEncryptor other)
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 OutputStream getDataStream(DirectoryNode dir) throws IOException, GeneralSecurityException
EncryptorgetDataStream in class Encryptordir - the node to write toIOExceptionGeneralSecurityExceptionprotected void updateIntegrityHMAC(File tmpFile, int oleStreamSize) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionprotected EncryptionDocument createEncryptionDocument()
protected void marshallEncryptionDocument(EncryptionDocument ed, LittleEndianByteArrayOutputStream os)
public AgileEncryptor copy()