public class AgileEncryptor extends Encryptor implements java.lang.Cloneable
DEFAULT_POIFS_ENTRY| Modifier | Constructor and Description |
|---|---|
protected |
AgileEncryptor() |
| Modifier and Type | Method and Description |
|---|---|
AgileEncryptor |
clone() |
void |
confirmPassword(java.lang.String password) |
void |
confirmPassword(java.lang.String password,
byte[] keySpec,
byte[] keySalt,
byte[] verifier,
byte[] verifierSalt,
byte[] integritySalt) |
protected com.microsoft.schemas.office.x2006.encryption.EncryptionDocument |
createEncryptionDocument() |
protected void |
createEncryptionInfoEntry(DirectoryNode dir,
java.io.File tmpFile) |
java.io.OutputStream |
getDataStream(DirectoryNode dir)
Return a output stream for encrypted data.
|
protected void |
marshallEncryptionDocument(com.microsoft.schemas.office.x2006.encryption.EncryptionDocument ed,
LittleEndianByteArrayOutputStream os) |
protected void |
updateIntegrityHMAC(java.io.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, getDataStream, getEncryptionInfo, getInstance, getSecretKey, setChunkSize, setEncryptionInfo, setSecretKeypublic void confirmPassword(java.lang.String password)
confirmPassword in class Encryptorpublic void confirmPassword(java.lang.String password,
byte[] keySpec,
byte[] keySalt,
byte[] verifier,
byte[] verifierSalt,
byte[] integritySalt)
confirmPassword in class Encryptorpublic java.io.OutputStream getDataStream(DirectoryNode dir) throws java.io.IOException, java.security.GeneralSecurityException
EncryptorgetDataStream in class Encryptordir - the node to write tojava.io.IOExceptionjava.security.GeneralSecurityExceptionprotected void updateIntegrityHMAC(java.io.File tmpFile,
int oleStreamSize)
throws java.security.GeneralSecurityException,
java.io.IOException
java.security.GeneralSecurityExceptionjava.io.IOExceptionprotected com.microsoft.schemas.office.x2006.encryption.EncryptionDocument createEncryptionDocument()
protected void marshallEncryptionDocument(com.microsoft.schemas.office.x2006.encryption.EncryptionDocument ed,
LittleEndianByteArrayOutputStream os)
protected void createEncryptionInfoEntry(DirectoryNode dir, java.io.File tmpFile) throws java.io.IOException, java.security.GeneralSecurityException
java.io.IOExceptionjava.security.GeneralSecurityExceptionpublic AgileEncryptor clone() throws java.lang.CloneNotSupportedException
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.