Package org.keycloak.models.utils
Class RecoveryAuthnCodesUtils
- java.lang.Object
-
- org.keycloak.models.utils.RecoveryAuthnCodesUtils
-
public class RecoveryAuthnCodesUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
FIELD_RECOVERY_CODE_IN_BROWSER_FLOW
static String
NOM_ALGORITHM_TO_HASH
static int
NUM_HASH_ITERATIONS
static String
RECOVERY_AUTHN_CODES_INPUT_DEFAULT_ERROR_MESSAGE
static char[]
UPPERNUM
-
Constructor Summary
Constructors Constructor Description RecoveryAuthnCodesUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<String>
generateRawCodes()
static String
hashRawCode(String rawGeneratedCode)
static boolean
verifyRecoveryCodeInput(String rawInputRecoveryCode, String hashedSavedRecoveryCode)
-
-
-
Field Detail
-
UPPERNUM
public static final char[] UPPERNUM
-
NOM_ALGORITHM_TO_HASH
public static final String NOM_ALGORITHM_TO_HASH
- See Also:
- Constant Field Values
-
NUM_HASH_ITERATIONS
public static final int NUM_HASH_ITERATIONS
- See Also:
- Constant Field Values
-
RECOVERY_AUTHN_CODES_INPUT_DEFAULT_ERROR_MESSAGE
public static final String RECOVERY_AUTHN_CODES_INPUT_DEFAULT_ERROR_MESSAGE
- See Also:
- Constant Field Values
-
FIELD_RECOVERY_CODE_IN_BROWSER_FLOW
public static final String FIELD_RECOVERY_CODE_IN_BROWSER_FLOW
- See Also:
- Constant Field Values
-
-