public class RecoveryAuthnCodesCredentialModel extends CredentialModel
Modifier and Type | Field and Description |
---|---|
static String |
RECOVERY_CODES_GENERATE_NEW_CODES |
static String |
RECOVERY_CODES_NUMBER_REMAINING |
static String |
RECOVERY_CODES_NUMBER_USED |
static String |
TYPE |
CLIENT_CERT, HOTP, KERBEROS, OTP, PASSWORD, PASSWORD_HISTORY, PASSWORD_TOKEN, SECRET, TOTP
Modifier and Type | Method and Description |
---|---|
boolean |
allCodesUsed() |
static RecoveryAuthnCodesCredentialModel |
createFromCredentialModel(CredentialModel credentialModel) |
static RecoveryAuthnCodesCredentialModel |
createFromValues(List<String> originalGeneratedCodes,
long generatedAt,
String userLabel) |
Optional<RecoveryAuthnCodeRepresentation> |
getNextRecoveryAuthnCode() |
void |
removeRecoveryAuthnCode() |
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
public static final String TYPE
public static final String RECOVERY_CODES_NUMBER_USED
public static final String RECOVERY_CODES_NUMBER_REMAINING
public static final String RECOVERY_CODES_GENERATE_NEW_CODES
public Optional<RecoveryAuthnCodeRepresentation> getNextRecoveryAuthnCode()
public boolean allCodesUsed()
public void removeRecoveryAuthnCode()
public static RecoveryAuthnCodesCredentialModel createFromValues(List<String> originalGeneratedCodes, long generatedAt, String userLabel)
public static RecoveryAuthnCodesCredentialModel createFromCredentialModel(CredentialModel credentialModel)
Copyright © 2025 JBoss by Red Hat. All rights reserved.