public abstract class AbstractEncryptor extends Object implements EncryptContent.Encryptor
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
flowfileAttributes |
private static org.slf4j.Logger |
logger |
private static String |
MODIFIABLE_CHECK_KEY |
| Constructor and Description |
|---|
AbstractEncryptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
updateAttributes(Map<String,String> attributes)
Updates the provided flowfile attribute map with the new attributes from this encryption/decryption operation.
|
(package private) static Map<String,String> |
writeAttributes(EncryptionMethod encryptionMethod,
KeyDerivationFunction kdf,
byte[] iv,
ByteCountingInputStream bcis,
ByteCountingOutputStream bcos,
boolean encryptMode)
Returns the map of "standard"
EncryptContent attributes set for the provided operation. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDecryptionCallback, getEncryptionCallbackprivate static final org.slf4j.Logger logger
private static final String MODIFIABLE_CHECK_KEY
public void updateAttributes(Map<String,String> attributes)
updateAttributes in interface EncryptContent.Encryptorattributes - a modifiable map of attributesstatic Map<String,String> writeAttributes(EncryptionMethod encryptionMethod, KeyDerivationFunction kdf, byte[] iv, ByteCountingInputStream bcis, ByteCountingOutputStream bcos, boolean encryptMode)
EncryptContent attributes set for the provided operation.encryptionMethod - the algorithm usedkdf - the KeyDerivationFunction usediv - the Initialization Vector in byte[] formbcis - the ByteCountingInputStream (plaintext for encrypt; cipher text for decrypt)bcos - the ByteCountingOutputStream (reverse of input stream)encryptMode - true for encrypt; false for decryptCopyright © 2023 Apache NiFi Project. All rights reserved.