Package org.keycloak.models.credential
Class PasswordCredentialModel
- java.lang.Object
-
- org.keycloak.credential.CredentialModel
-
- org.keycloak.models.credential.PasswordCredentialModel
-
- All Implemented Interfaces:
Serializable
public class PasswordCredentialModel extends CredentialModel
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringPASSWORD_HISTORYstatic StringTYPE-
Fields inherited from class org.keycloak.credential.CredentialModel
CLIENT_CERT, HOTP, KERBEROS, OTP, PASSWORD, PASSWORD_TOKEN, SECRET, TOTP
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PasswordCredentialModelcreateFromCredentialModel(CredentialModel credentialModel)static PasswordCredentialModelcreateFromValues(String algorithm, byte[] salt, int hashIterations, String encodedPassword)static PasswordCredentialModelcreateFromValues(PasswordCredentialData credentialData, PasswordSecretData secretData)PasswordCredentialDatagetPasswordCredentialData()PasswordSecretDatagetPasswordSecretData()-
Methods inherited from class org.keycloak.credential.CredentialModel
comparingByStartDateDesc, getAlgorithm, getConfig, getCounter, getCreatedDate, getCredentialData, getDevice, getDigits, getHashIterations, getId, getPeriod, getSalt, getSecretData, getType, getUserLabel, getValue, setAlgorithm, setConfig, setCounter, setCreatedDate, setCredentialData, setDevice, setDigits, setHashIterations, setId, setPeriod, setSalt, setSecretData, setType, setUserLabel, setValue, shallowClone
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
PASSWORD_HISTORY
public static final String PASSWORD_HISTORY
- See Also:
- Constant Field Values
-
-
Method Detail
-
createFromValues
public static PasswordCredentialModel createFromValues(PasswordCredentialData credentialData, PasswordSecretData secretData)
-
createFromValues
public static PasswordCredentialModel createFromValues(String algorithm, byte[] salt, int hashIterations, String encodedPassword)
-
createFromCredentialModel
public static PasswordCredentialModel createFromCredentialModel(CredentialModel credentialModel)
-
getPasswordCredentialData
public PasswordCredentialData getPasswordCredentialData()
-
getPasswordSecretData
public PasswordSecretData getPasswordSecretData()
-
-