Class StandardDerivedKeyGenerator
java.lang.Object
org.apache.nifi.toolkit.config.crypto.StandardDerivedKeyGenerator
- All Implemented Interfaces:
DerivedKeyGenerator
Standard implementation of Derived Key Generator using scrypt with compatible parameters and preset salt for reproducible outputs
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final intprivate static final ScryptDerivedKeyParameterSpecprivate static final ScryptDerivedKeyProviderprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDerivedKeyEncoded(char[] password) Get Derived Key based on the provided password using scrypt and return an encoded representation
-
Field Details
-
SALT
- See Also:
-
KEY_PROVIDER
-
KEY_PARAMETER_SPEC
-
KEY_ALGORITHM
- See Also:
-
KEY_LENGTH
private static final int KEY_LENGTH- See Also:
-
-
Constructor Details
-
StandardDerivedKeyGenerator
public StandardDerivedKeyGenerator()
-
-
Method Details
-
getDerivedKeyEncoded
Get Derived Key based on the provided password using scrypt and return an encoded representation- Specified by:
getDerivedKeyEncodedin interfaceDerivedKeyGenerator- Parameters:
password- Password source for key derivation- Returns:
- Derived key encoded using hexadecimal
-