Package org.keycloak.models
Class UserCredentialModel
java.lang.Object
org.keycloak.models.UserCredentialModel
- All Implemented Interfaces:
CredentialInput
- Direct Known Subclasses:
PasswordUserCredentialModel
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUserCredentialModel(String credentialId, String type, String challengeResponse) UserCredentialModel(String credentialId, String type, String challengeResponse, boolean adminRequest) -
Method Summary
Modifier and TypeMethodDescriptionstatic UserCredentialModelbuildFromBackupAuthnCode(String backupAuthnCodeInput) static UserCredentialModelbuildFromBackupAuthnCode(String credentialId, String backupAuthnCodeInput) static UserCredentialModelgetType()getValue()This method exists only because of the backwards compatibility.static UserCredentialModelbooleanstatic booleanDeprecated.static UserCredentialModelstatic UserCredentialModelstatic PasswordUserCredentialModelstatic PasswordUserCredentialModelstatic UserCredentialModelpasswordToken(String passwordToken) Deprecated.voidremoveNote(String key) static UserCredentialModelvoidsetAlgorithm(String algorithm) voidvoidvoidvoidstatic UserCredentialModel
-
Field Details
-
PASSWORD
Deprecated.- See Also:
-
PASSWORD_HISTORY
Deprecated.- See Also:
-
TOTP
Deprecated.- See Also:
-
HOTP
Deprecated.- See Also:
-
PASSWORD_TOKEN
Deprecated.- See Also:
-
SECRET
- See Also:
-
KERBEROS
- See Also:
-
CLIENT_CERT
- See Also:
-
notes
-
-
Constructor Details
-
UserCredentialModel
public UserCredentialModel() -
UserCredentialModel
-
UserCredentialModel
-
-
Method Details
-
password
-
password
-
passwordToken
Deprecated. -
otp
- Parameters:
type- must be "totp" or "hotp"key-- Returns:
-
totp
-
hotp
-
secret
-
kerberos
-
generateSecret
-
buildFromBackupAuthnCode
-
buildFromBackupAuthnCode
public static UserCredentialModel buildFromBackupAuthnCode(String credentialId, String backupAuthnCodeInput) -
getCredentialId
- Specified by:
getCredentialIdin interfaceCredentialInput
-
getType
- Specified by:
getTypein interfaceCredentialInput
-
setType
-
getChallengeResponse
- Specified by:
getChallengeResponsein interfaceCredentialInput
-
isAdminRequest
public boolean isAdminRequest() -
isOtp
Deprecated.This method exists only because of the backwards compatibility -
getValue
This method exists only because of the backwards compatibility. It is recommended to usegetChallengeResponse()instead -
setValue
-
getDevice
-
setDevice
-
getAlgorithm
-
setAlgorithm
-
setNote
-
removeNote
-
getNote
-