public class StandardEncryptor extends Encryptor
Modifier and Type | Class and Description |
---|---|
protected class |
StandardEncryptor.StandardCipherOutputStream |
DEFAULT_POIFS_ENTRY
Modifier | Constructor and Description |
---|---|
protected |
StandardEncryptor() |
protected |
StandardEncryptor(StandardEncryptor 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)
Fills the fields of verifier and header with the calculated hashes based on the password and a random salt see [MS-OFFCRYPTO] - 2.3.4.7 ECMA-376 Document Encryption Key Generation
(使用基于密码和随机盐计算的哈希值填充验证器和标头字段,请参阅 [MS-OFFCRYPTO] - 2.3.4.7 ECMA-376 文档加密密钥生成)
|
StandardEncryptor |
copy() |
protected void |
createEncryptionInfoEntry(DirectoryNode dir) |
java.io.OutputStream |
getDataStream(DirectoryNode dir)
Return a output stream for encrypted data.
(返回加密数据的输出流。)
|
protected int |
getKeySizeInBytes() |
getDataStream, getDataStream, getEncryptionInfo, getGenericProperties, getInstance, getSecretKey, setChunkSize, setEncryptionInfo, setSecretKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGenericChildren, getGenericRecordType
protected StandardEncryptor()
protected StandardEncryptor(StandardEncryptor 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 int getKeySizeInBytes()
protected void createEncryptionInfoEntry(DirectoryNode dir) throws java.io.IOException
java.io.IOException
(java.io.IOException)
public StandardEncryptor copy()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.