Package org.keycloak.credential
Class CredentialModel
java.lang.Object
org.keycloak.credential.CredentialModel
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
OTPCredentialModel
,PasswordCredentialModel
,RecoveryAuthnCodesCredentialModel
,WebAuthnCredentialModel
Used just in cases when we want to "directly" update or retrieve the hash or salt of user credential (For example during export/import)
- Author:
- Marek Posolda
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Comparator<CredentialModel>
Deprecated.Recommended to use PasswordCredentialModel.getPasswordCredentialData().getAlgorithm() or OTPCredentialModel.getOTPCredentialData().getAlgorithm()Deprecated.Recommended to usegetCredentialData()
instead and use the subtype of CredentialData specific to your credentialint
Deprecated.Recommended to use OTPCredentialModel.getOTPCredentialData().getCounter()Deprecated.Recommended to use OTPCredentialModel.getOTPCredentialData().getDevice()int
Deprecated.Recommended to use OTPCredentialModel.getOTPCredentialData().getDigits()int
Deprecated.Recommended to use PasswordCredentialModel.getPasswordCredentialData().getHashIterations()getId()
int
Deprecated.Recommended to use OTPCredentialModel.getOTPCredentialData().getPeriod()byte[]
getSalt()
Deprecated.Recommended to use PasswordCredentialModel.getPasswordSecretData().getSalt()getType()
getValue()
Deprecated.Recommended to use PasswordCredentialModel.getPasswordSecretData().getValue() or OTPCredentialModel.getOTPSecretData().getValue()void
setAlgorithm
(String algorithm) Deprecated.SeegetAlgorithm()
void
setConfig
(MultivaluedHashMap<String, String> config) Deprecated.Recommended to usesetCredentialData(String)
instead and use the subtype of CredentialData specific to your credentialvoid
setCounter
(int counter) Deprecated.SeegetCounter()
void
setCreatedDate
(Long createdDate) void
setCredentialData
(String credentialData) void
Deprecated.SeegetDevice()
void
setDigits
(int digits) Deprecated.SeesetDigits(int)
void
setHashIterations
(int iterations) Deprecated.void
void
setPeriod
(int period) Deprecated.SeesetPeriod(int)
void
setSalt
(byte[] salt) Deprecated.SeegetSalt()
void
setSecretData
(String secretData) void
void
setUserLabel
(String userLabel) void
Deprecated.SeegetValue()
-
Field Details
-
PASSWORD
Deprecated.- See Also:
-
PASSWORD_HISTORY
Deprecated.- See Also:
-
PASSWORD_TOKEN
Deprecated.- See Also:
-
OTP
Deprecated.- See Also:
-
TOTP
Deprecated.- See Also:
-
HOTP
Deprecated.- See Also:
-
SECRET
- See Also:
-
CLIENT_CERT
- See Also:
-
KERBEROS
- See Also:
-
-
Constructor Details
-
CredentialModel
public CredentialModel()
-
-
Method Details
-
shallowClone
-
getId
-
setId
-
getType
-
setType
-
getUserLabel
-
setUserLabel
-
getCreatedDate
-
setCreatedDate
-
getSecretData
-
setSecretData
-
getCredentialData
-
setCredentialData
-
comparingByStartDateDesc
-
getValue
Deprecated.Recommended to use PasswordCredentialModel.getPasswordSecretData().getValue() or OTPCredentialModel.getOTPSecretData().getValue() -
setValue
Deprecated.SeegetValue()
-
getDevice
Deprecated.Recommended to use OTPCredentialModel.getOTPCredentialData().getDevice() -
setDevice
Deprecated.SeegetDevice()
-
getSalt
Deprecated.Recommended to use PasswordCredentialModel.getPasswordSecretData().getSalt() -
setSalt
Deprecated.SeegetSalt()
-
getHashIterations
Deprecated.Recommended to use PasswordCredentialModel.getPasswordCredentialData().getHashIterations() -
setHashIterations
Deprecated. -
getCounter
Deprecated.Recommended to use OTPCredentialModel.getOTPCredentialData().getCounter() -
setCounter
Deprecated.SeegetCounter()
-
getAlgorithm
Deprecated.Recommended to use PasswordCredentialModel.getPasswordCredentialData().getAlgorithm() or OTPCredentialModel.getOTPCredentialData().getAlgorithm() -
setAlgorithm
Deprecated.SeegetAlgorithm()
-
getDigits
Deprecated.Recommended to use OTPCredentialModel.getOTPCredentialData().getDigits() -
setDigits
Deprecated.SeesetDigits(int)
-
getPeriod
Deprecated.Recommended to use OTPCredentialModel.getOTPCredentialData().getPeriod() -
setPeriod
Deprecated.SeesetPeriod(int)
-
getConfig
Deprecated.Recommended to usegetCredentialData()
instead and use the subtype of CredentialData specific to your credential -
setConfig
Deprecated.Recommended to usesetCredentialData(String)
instead and use the subtype of CredentialData specific to your credential
-