public class BinaryRC4Encryptor extends Encryptor
Modifier and Type | Class and Description |
---|---|
protected class |
BinaryRC4Encryptor.BinaryRC4CipherOutputStream |
DEFAULT_POIFS_ENTRY
Modifier | Constructor and Description |
---|---|
protected |
BinaryRC4Encryptor(BinaryRC4EncryptionInfoBuilder builder) |
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) |
protected void |
createEncryptionInfoEntry(DirectoryNode dir) |
java.io.OutputStream |
getDataStream(DirectoryNode dir)
Return a output stream for encrypted data.
|
protected int |
getKeySizeInBytes() |
getDataStream, getDataStream, getDataStream, getInstance, getSecretKey, setSecretKey
protected BinaryRC4Encryptor(BinaryRC4EncryptionInfoBuilder builder)
public void confirmPassword(java.lang.String password)
confirmPassword
in class Encryptor
public void confirmPassword(java.lang.String password, byte[] keySpec, byte[] keySalt, byte[] verifier, byte[] verifierSalt, byte[] integritySalt)
confirmPassword
in class Encryptor
public java.io.OutputStream getDataStream(DirectoryNode dir) throws java.io.IOException, java.security.GeneralSecurityException
Encryptor
getDataStream
in class Encryptor
dir
- the node to write tojava.io.IOException
java.security.GeneralSecurityException
protected int getKeySizeInBytes()
protected void createEncryptionInfoEntry(DirectoryNode dir) throws java.io.IOException
java.io.IOException
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.