Class PasswordSecretData

java.lang.Object
org.keycloak.models.credential.dto.PasswordSecretData

public class PasswordSecretData extends Object
  • Field Details

    • logger

      public static final org.jboss.logging.Logger logger
  • Constructor Details

    • PasswordSecretData

      public PasswordSecretData(String value, String salt, Map<String,List<String>> additionalParameters) throws IOException
      Creator with the option to provide customized secret data (multiple salt values, chiefly)
      Parameters:
      value - hash value
      salt - salt value
      additionalParameters - additional data required by the algorithm
      Throws:
      IOException - invalid base64 in salt value
    • PasswordSecretData

      public PasswordSecretData(String value, byte[] salt)
      Default creator (Secret consists only of a value and a single salt)
      Parameters:
      value - hash value
      salt - salt
  • Method Details