Class PasswordCredentialData


  • public class PasswordCredentialData
    extends Object
    • Constructor Detail

      • PasswordCredentialData

        public PasswordCredentialData​(int hashIterations,
                                      String algorithm)
        Creator for standard algorithms (no algorithm tuning beyond hash iterations)
        Parameters:
        hashIterations - iterations
        algorithm - 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 - iterations
        algorithm - algorithm id
        additionalParameters - additional tuning parameters
    • Method Detail

      • getHashIterations

        public int getHashIterations()
      • getAlgorithm

        public String getAlgorithm()
      • getAdditionalParameters

        public MultivaluedHashMap<String,​String> 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