Package org.keycloak.models.utils
Class RecoveryAuthnCodesUtils
java.lang.Object
org.keycloak.models.utils.RecoveryAuthnCodesUtils
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<CredentialModel>getCredential(UserModel user) Checks the user storage for the credential.static StringhashRawCode(String rawGeneratedCode) static booleanverifyRecoveryCodeInput(String rawInputRecoveryCode, String hashedSavedRecoveryCode)  
- 
Field Details
- 
UPPERNUM
public static final char[] UPPERNUM - 
NOM_ALGORITHM_TO_HASH
- See Also:
 
 - 
NUM_HASH_ITERATIONS
public static final int NUM_HASH_ITERATIONS- See Also:
 
 - 
RECOVERY_AUTHN_CODES_INPUT_DEFAULT_ERROR_MESSAGE
- See Also:
 
 - 
FIELD_RECOVERY_CODE_IN_BROWSER_FLOW
- See Also:
 
 
 - 
 - 
Constructor Details
- 
RecoveryAuthnCodesUtils
public RecoveryAuthnCodesUtils() 
 - 
 - 
Method Details
- 
hashRawCode
 - 
verifyRecoveryCodeInput
 - 
generateRawCodes
 - 
getCredential
Checks the user storage for the credential. If not found it will look for the credential in the local storage- Parameters:
 user- - User model- Returns:
 - - a optional credential model
 
 
 -