public class KeyedEncryptor extends AbstractEncryptor
| Modifier and Type | Class and Description |
|---|---|
private class |
KeyedEncryptor.DecryptCallback |
private class |
KeyedEncryptor.EncryptCallback |
| Modifier and Type | Field and Description |
|---|---|
private static int |
DEFAULT_MAX_ALLOWED_KEY_LENGTH |
private EncryptionMethod |
encryptionMethod |
private static boolean |
isUnlimitedStrengthCryptographyEnabled |
private byte[] |
iv |
private SecretKey |
key |
private static org.slf4j.Logger |
logger |
flowfileAttributes| Constructor and Description |
|---|
KeyedEncryptor(EncryptionMethod encryptionMethod,
byte[] keyBytes) |
KeyedEncryptor(EncryptionMethod encryptionMethod,
byte[] keyBytes,
byte[] iv) |
KeyedEncryptor(EncryptionMethod encryptionMethod,
SecretKey key) |
KeyedEncryptor(EncryptionMethod encryptionMethod,
SecretKey key,
byte[] iv) |
| Modifier and Type | Method and Description |
|---|---|
StreamCallback |
getDecryptionCallback() |
StreamCallback |
getEncryptionCallback() |
static int |
getMaxAllowedKeyLength(String algorithm) |
static boolean |
supportsUnlimitedStrength() |
updateAttributes, writeAttributesprivate static final org.slf4j.Logger logger
private EncryptionMethod encryptionMethod
private SecretKey key
private byte[] iv
private static final int DEFAULT_MAX_ALLOWED_KEY_LENGTH
private static boolean isUnlimitedStrengthCryptographyEnabled
public KeyedEncryptor(EncryptionMethod encryptionMethod, SecretKey key)
public KeyedEncryptor(EncryptionMethod encryptionMethod, SecretKey key, byte[] iv)
public KeyedEncryptor(EncryptionMethod encryptionMethod, byte[] keyBytes)
public KeyedEncryptor(EncryptionMethod encryptionMethod, byte[] keyBytes, byte[] iv)
public static int getMaxAllowedKeyLength(String algorithm)
public static boolean supportsUnlimitedStrength()
public StreamCallback getEncryptionCallback() throws ProcessException
ProcessExceptionpublic StreamCallback getDecryptionCallback() throws ProcessException
ProcessExceptionCopyright © 2023 Apache NiFi Project. All rights reserved.