public class PasswordBasedEncryptor extends AbstractEncryptor
| Modifier and Type | Class and Description |
|---|---|
private class |
PasswordBasedEncryptor.DecryptCallback |
private class |
PasswordBasedEncryptor.EncryptCallback |
| Modifier and Type | Field and Description |
|---|---|
private static int |
DEFAULT_MAX_ALLOWED_KEY_LENGTH |
private EncryptionMethod |
encryptionMethod |
private KeyDerivationFunction |
kdf |
private static org.slf4j.Logger |
logger |
private static int |
MINIMUM_SAFE_PASSWORD_LENGTH |
private PBEKeySpec |
password |
flowfileAttributes| Constructor and Description |
|---|
PasswordBasedEncryptor(EncryptionMethod encryptionMethod,
char[] password,
KeyDerivationFunction kdf) |
| Modifier and Type | Method and Description |
|---|---|
StreamCallback |
getDecryptionCallback() |
StreamCallback |
getEncryptionCallback() |
static int |
getMaxAllowedKeyLength(String algorithm) |
static int |
getMinimumSafePasswordLength()
Returns a recommended minimum length for passwords.
|
(package private) static Map<String,String> |
writeAttributes(EncryptionMethod encryptionMethod,
KeyDerivationFunction kdf,
byte[] iv,
byte[] kdfSalt,
ByteCountingInputStream bcis,
ByteCountingOutputStream bcos,
boolean encryptMode) |
updateAttributes, writeAttributesprivate static final org.slf4j.Logger logger
private EncryptionMethod encryptionMethod
private PBEKeySpec password
private KeyDerivationFunction kdf
private static final int DEFAULT_MAX_ALLOWED_KEY_LENGTH
private static final int MINIMUM_SAFE_PASSWORD_LENGTH
public PasswordBasedEncryptor(EncryptionMethod encryptionMethod, char[] password, KeyDerivationFunction kdf)
public static int getMaxAllowedKeyLength(String algorithm)
public static int getMinimumSafePasswordLength()
static Map<String,String> writeAttributes(EncryptionMethod encryptionMethod, KeyDerivationFunction kdf, byte[] iv, byte[] kdfSalt, ByteCountingInputStream bcis, ByteCountingOutputStream bcos, boolean encryptMode)
public StreamCallback getEncryptionCallback() throws ProcessException
ProcessExceptionpublic StreamCallback getDecryptionCallback() throws ProcessException
ProcessExceptionCopyright © 2023 Apache NiFi Project. All rights reserved.