Class PasswordSecretData
- java.lang.Object
-
- org.keycloak.models.credential.dto.PasswordSecretData
-
public class PasswordSecretData extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static org.jboss.logging.Logger
logger
-
Constructor Summary
Constructors Constructor Description PasswordSecretData(String value, byte[] salt)
Default creator (Secret consists only of a value and a single salt)PasswordSecretData(String value, String salt, Map<String,List<String>> additionalParameters)
Creator with the option to provide customized secret data (multiple salt values, chiefly)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultivaluedHashMap<String,String>
getAdditionalParameters()
byte[]
getSalt()
String
getValue()
-
-
-
Constructor Detail
-
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 valuesalt
- salt valueadditionalParameters
- 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 valuesalt
- salt
-
-
Method Detail
-
getValue
public String getValue()
-
getSalt
public byte[] getSalt()
-
getAdditionalParameters
public MultivaluedHashMap<String,String> getAdditionalParameters()
-
-