Package org.keycloak.models.credential
Class RecoveryAuthnCodesCredentialModel
- java.lang.Object
- 
- org.keycloak.credential.CredentialModel
- 
- org.keycloak.models.credential.RecoveryAuthnCodesCredentialModel
 
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class RecoveryAuthnCodesCredentialModel extends CredentialModel - See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringRECOVERY_CODES_GENERATE_NEW_CODESstatic StringRECOVERY_CODES_NUMBER_REMAININGstatic StringRECOVERY_CODES_NUMBER_USEDstatic StringTYPE- 
Fields inherited from class org.keycloak.credential.CredentialModelCLIENT_CERT, HOTP, KERBEROS, OTP, PASSWORD, PASSWORD_HISTORY, PASSWORD_TOKEN, SECRET, TOTP
 
- 
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallCodesUsed()static RecoveryAuthnCodesCredentialModelcreateFromCredentialModel(CredentialModel credentialModel)static RecoveryAuthnCodesCredentialModelcreateFromValues(List<String> originalGeneratedCodes, long generatedAt, String userLabel)Optional<RecoveryAuthnCodeRepresentation>getNextRecoveryAuthnCode()voidremoveRecoveryAuthnCode()- 
Methods inherited from class org.keycloak.credential.CredentialModelcomparingByStartDateDesc, 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- 
TYPEpublic static final String TYPE - See Also:
- Constant Field Values
 
 - 
RECOVERY_CODES_NUMBER_USEDpublic static final String RECOVERY_CODES_NUMBER_USED - See Also:
- Constant Field Values
 
 - 
RECOVERY_CODES_NUMBER_REMAININGpublic static final String RECOVERY_CODES_NUMBER_REMAINING - See Also:
- Constant Field Values
 
 - 
RECOVERY_CODES_GENERATE_NEW_CODESpublic static final String RECOVERY_CODES_GENERATE_NEW_CODES - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getNextRecoveryAuthnCodepublic Optional<RecoveryAuthnCodeRepresentation> getNextRecoveryAuthnCode() 
 - 
allCodesUsedpublic boolean allCodesUsed() 
 - 
removeRecoveryAuthnCodepublic void removeRecoveryAuthnCode() 
 - 
createFromValuespublic static RecoveryAuthnCodesCredentialModel createFromValues(List<String> originalGeneratedCodes, long generatedAt, String userLabel) 
 - 
createFromCredentialModelpublic static RecoveryAuthnCodesCredentialModel createFromCredentialModel(CredentialModel credentialModel) 
 
- 
 
-