This is an automated email from the ASF dual-hosted git repository.
pvillard pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/main by this push:
new e8b1cd483f NIFI-15530 Removed SLF4J debug references from Property
Encryptor
e8b1cd483f is described below
commit e8b1cd483fd5a90747128b8f8303bbf374965d7e
Author: exceptionfactory <[email protected]>
AuthorDate: Thu Jan 29 16:06:24 2026 -0600
NIFI-15530 Removed SLF4J debug references from Property Encryptor
This closes #10834.
Signed-off-by: Pierre Villard <[email protected]>
---
nifi-commons/nifi-property-encryptor/pom.xml | 4 ----
.../org/apache/nifi/encrypt/StandardPropertySecretKeyProvider.java | 7 -------
2 files changed, 11 deletions(-)
diff --git a/nifi-commons/nifi-property-encryptor/pom.xml
b/nifi-commons/nifi-property-encryptor/pom.xml
index f771b71950..82bae6d159 100644
--- a/nifi-commons/nifi-property-encryptor/pom.xml
+++ b/nifi-commons/nifi-property-encryptor/pom.xml
@@ -22,10 +22,6 @@
</parent>
<artifactId>nifi-property-encryptor</artifactId>
<dependencies>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- </dependency>
<dependency>
<groupId>org.apache.nifi</groupId>
<artifactId>nifi-security-crypto-key</artifactId>
diff --git
a/nifi-commons/nifi-property-encryptor/src/main/java/org/apache/nifi/encrypt/StandardPropertySecretKeyProvider.java
b/nifi-commons/nifi-property-encryptor/src/main/java/org/apache/nifi/encrypt/StandardPropertySecretKeyProvider.java
index f583c0b6d4..3d64c24092 100644
---
a/nifi-commons/nifi-property-encryptor/src/main/java/org/apache/nifi/encrypt/StandardPropertySecretKeyProvider.java
+++
b/nifi-commons/nifi-property-encryptor/src/main/java/org/apache/nifi/encrypt/StandardPropertySecretKeyProvider.java
@@ -23,8 +23,6 @@ import
org.apache.nifi.security.crypto.key.argon2.Argon2DerivedKeyParameterSpec;
import org.apache.nifi.security.crypto.key.argon2.Argon2DerivedKeyProvider;
import
org.apache.nifi.security.crypto.key.pbkdf2.Pbkdf2DerivedKeyParameterSpec;
import org.apache.nifi.security.crypto.key.pbkdf2.Pbkdf2DerivedKeyProvider;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
import java.util.Objects;
import javax.crypto.SecretKey;
@@ -34,8 +32,6 @@ import javax.crypto.spec.SecretKeySpec;
* Standard implementation of Property Secret Key Provider implementing
supported Key Derivation Functions
*/
class StandardPropertySecretKeyProvider implements PropertySecretKeyProvider {
- private static final Logger LOGGER =
LoggerFactory.getLogger(StandardPropertySecretKeyProvider.class);
-
/** Standard Application Salt supporting deterministic encrypted property
comparison */
private static final byte[] APPLICATION_SALT = new byte[]{'N', 'i', 'F',
'i', ' ', 'S', 't', 'a', 't', 'i', 'c', ' ', 'S', 'a', 'l', 't'};
@@ -70,9 +66,6 @@ class StandardPropertySecretKeyProvider implements
PropertySecretKeyProvider {
throw new EncryptionException(PASSWORD_LENGTH_MESSAGE);
}
- final int keyLength = propertyEncryptionMethod.getKeyLength();
- LOGGER.debug("Generating [{}-{}] Secret Key using [{}]",
SECRET_KEY_ALGORITHM, keyLength, propertyEncryptionMethod.name());
-
final DerivedKey derivedKey = getDerivedKey(propertyEncryptionMethod,
password);
return new SecretKeySpec(derivedKey.getEncoded(),
SECRET_KEY_ALGORITHM);
}