Class PasswordCredentialData
java.lang.Object
org.keycloak.models.credential.dto.PasswordCredentialData
-
Constructor Summary
ConstructorDescriptionPasswordCredentialData
(int hashIterations, String algorithm) Creator for standard algorithms (no algorithm tuning beyond hash iterations)PasswordCredentialData
(int hashIterations, String algorithm, Map<String, List<String>> additionalParameters) Creator for custom algorithms (algorithm with tuning parameters beyond simple has iterations) -
Method Summary
Modifier and TypeMethodDescriptionReturns a map of algorithm-specific settings.int
-
Constructor Details
-
PasswordCredentialData
Creator for standard algorithms (no algorithm tuning beyond hash iterations)- Parameters:
hashIterations
- iterationsalgorithm
- algorithm id
-
PasswordCredentialData
public PasswordCredentialData(int hashIterations, String algorithm, Map<String, List<String>> additionalParameters) Creator for custom algorithms (algorithm with tuning parameters beyond simple has iterations)- Parameters:
hashIterations
- iterationsalgorithm
- algorithm idadditionalParameters
- additional tuning parameters
-
-
Method Details
-
getHashIterations
public int getHashIterations() -
getAlgorithm
-
getAdditionalParameters
Returns a map of algorithm-specific settings. These settings may include additional parameters such as Bcrypt memory-tuning parameters. It should be used immutably.- Returns:
- algorithm data
-