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
-
Constructor Summary
ConstructorDescriptionUserCredentialModel
(String credentialId, String type, String challengeResponse) UserCredentialModel
(String credentialId, String type, String challengeResponse, boolean adminRequest) -
Method Summary
Modifier and TypeMethodDescriptionstatic UserCredentialModel
buildFromBackupAuthnCode
(String backupAuthnCodeInput) static UserCredentialModel
buildFromBackupAuthnCode
(String credentialId, String backupAuthnCodeInput) static UserCredentialModel
getType()
getValue()
This method exists only because of the backwards compatibility.static UserCredentialModel
boolean
static boolean
Deprecated.static UserCredentialModel
static UserCredentialModel
static PasswordUserCredentialModel
static PasswordUserCredentialModel
static UserCredentialModel
passwordToken
(String passwordToken) Deprecated.void
removeNote
(String key) static UserCredentialModel
void
setAlgorithm
(String algorithm) void
void
void
void
static 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:
getCredentialId
in interfaceCredentialInput
-
getType
- Specified by:
getType
in interfaceCredentialInput
-
setType
-
getChallengeResponse
- Specified by:
getChallengeResponse
in 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
-