public class StandardEncryptor extends Encryptor
| Modifier and Type | Class and Description |
|---|---|
protected class |
StandardEncryptor.StandardCipherOutputStream |
DEFAULT_POIFS_ENTRY| Modifier | Constructor and Description |
|---|---|
protected |
StandardEncryptor(StandardEncryptionInfoBuilder 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)
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
|
protected void |
createEncryptionInfoEntry(DirectoryNode dir) |
OutputStream |
getDataStream(DirectoryNode dir)
Return a output stream for encrypted data.
|
protected int |
getKeySizeInBytes() |
getDataStream, getDataStream, getDataStream, getInstance, getSecretKey, setSecretKeyprotected StandardEncryptor(StandardEncryptionInfoBuilder builder)
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 int getKeySizeInBytes()
protected void createEncryptionInfoEntry(DirectoryNode dir) throws IOException
IOExceptionCopyright © 2007-2020. All Rights Reserved.