Package org.keycloak.models.credential
Class RecoveryAuthnCodesCredentialModel
java.lang.Object
org.keycloak.credential.CredentialModel
org.keycloak.models.credential.RecoveryAuthnCodesCredentialModel
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
Fields inherited from class org.keycloak.credential.CredentialModel
CLIENT_CERT, HOTP, KERBEROS, OTP, PASSWORD, PASSWORD_HISTORY, PASSWORD_TOKEN, SECRET, TOTP
-
Method Summary
Modifier and TypeMethodDescriptionboolean
createFromCredentialModel
(CredentialModel credentialModel) createFromValues
(List<String> originalGeneratedCodes, long generatedAt, String userLabel) void
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 Details
-
TYPE
- See Also:
-
RECOVERY_CODES_NUMBER_USED
- See Also:
-
RECOVERY_CODES_NUMBER_REMAINING
- See Also:
-
RECOVERY_CODES_GENERATE_NEW_CODES
- See Also:
-
-
Method Details
-
getNextRecoveryAuthnCode
-
allCodesUsed
public boolean allCodesUsed() -
removeRecoveryAuthnCode
public void removeRecoveryAuthnCode() -
createFromValues
public static RecoveryAuthnCodesCredentialModel createFromValues(List<String> originalGeneratedCodes, long generatedAt, String userLabel) -
createFromCredentialModel
public static RecoveryAuthnCodesCredentialModel createFromCredentialModel(CredentialModel credentialModel)
-