Class RecoveryAuthnCodesUtils

java.lang.Object
org.keycloak.models.utils.RecoveryAuthnCodesUtils

public class RecoveryAuthnCodesUtils extends Object
  • Field Details

    • UPPERNUM

      public static final char[] UPPERNUM
    • NOM_ALGORITHM_TO_HASH

      public static final String 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

      public static final String RECOVERY_AUTHN_CODES_INPUT_DEFAULT_ERROR_MESSAGE
      See Also:
    • FIELD_RECOVERY_CODE_IN_BROWSER_FLOW

      public static final String FIELD_RECOVERY_CODE_IN_BROWSER_FLOW
      See Also:
  • Constructor Details

    • RecoveryAuthnCodesUtils

      public RecoveryAuthnCodesUtils()
  • Method Details

    • hashRawCode

      public static String hashRawCode(String rawGeneratedCode)
    • verifyRecoveryCodeInput

      public static boolean verifyRecoveryCodeInput(String rawInputRecoveryCode, String hashedSavedRecoveryCode)
    • generateRawCodes

      public static List<String> generateRawCodes()