markobean commented on a change in pull request #5424:
URL: https://github.com/apache/nifi/pull/5424#discussion_r720284171
##########
File path:
nifi-stateless/nifi-stateless-bundle/nifi-stateless-engine/src/main/java/org/apache/nifi/stateless/flow/StandardStatelessDataflowFactory.java
##########
@@ -83,14 +81,12 @@
import java.net.URL;
import java.net.URLClassLoader;
import java.util.ArrayList;
-import java.util.HashMap;
import java.util.List;
-import java.util.Map;
import java.util.Optional;
public class StandardStatelessDataflowFactory implements
StatelessDataflowFactory<VersionedFlowSnapshot> {
private static final Logger logger =
LoggerFactory.getLogger(StandardStatelessDataflowFactory.class);
- private static final EncryptionMethod ENCRYPTION_METHOD =
EncryptionMethod.MD5_256AES;
+ private static final String PROPERTY_ENCRYPTION_METHOD =
"NIFI_PBKDF2_AES_GCM_256";
Review comment:
Suggest referencing the enum directly rather than a String
PropertyEncryptionMethod.NIFI_PBKDF2_AES_GCM_256.toString()
This requires making the enum public. Do you see a problem with that?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]