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(java.lang.String password) |
void |
confirmPassword(java.lang.String password, byte[] keySpec, byte[] keySalt, byte[] verifier, byte[] verifierSalt, byte[] integritySalt) |
AgileEncryptor |
copy() |
protected EncryptionDocument |
createEncryptionDocument() |
java.io.OutputStream |
getDataStream(DirectoryNode dir)
Return a output stream for encrypted data.
(返回加密数据的输出流。)
|
protected void |
marshallEncryptionDocument(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.
(按照 [RFC2104] 中的规定,生成数据(消息)的加密形式的 HMAC,DataIntegrity 元素将使用步骤 2 中生成的 Salt 作为密钥来验证该 HMAC。)
|
getDataStream, getDataStream, getEncryptionInfo, getGenericProperties, getInstance, getSecretKey, setChunkSize, setEncryptionInfo, setSecretKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGenericChildren, getGenericRecordType
protected AgileEncryptor()
protected AgileEncryptor(AgileEncryptor other)
public void confirmPassword(java.lang.String password)
confirmPassword
in class
Encryptor
(类 Encryptor 中的 confirmPassword)
public void confirmPassword(java.lang.String password, byte[] keySpec, byte[] keySalt, byte[] verifier, byte[] verifierSalt, byte[] integritySalt)
confirmPassword
in class
Encryptor
(类 Encryptor 中的 confirmPassword)
public java.io.OutputStream getDataStream(DirectoryNode dir) throws java.io.IOException, java.security.GeneralSecurityException
Encryptor
getDataStream
in class
Encryptor
(类 Encryptor 中的 getDataStream)
dir
- the node to write to
(dir - 要写入的节点)
java.io.IOException
(java.io.IOException)
java.security.GeneralSecurityException
(java.security.GeneralSecurityException)
protected void updateIntegrityHMAC(java.io.File tmpFile, int oleStreamSize) throws java.security.GeneralSecurityException, java.io.IOException
java.security.GeneralSecurityException
(java.security.GeneralSecurityException)
java.io.IOException
(java.io.IOException)
protected EncryptionDocument createEncryptionDocument()
protected void marshallEncryptionDocument(EncryptionDocument ed, LittleEndianByteArrayOutputStream os)
public AgileEncryptor copy()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.