Interface LoginInformationManager

    • Method Detail

      • isElevatedSecurityCheckRequired

        boolean isElevatedSecurityCheckRequired​(String userName)
        Returns true when CAPTCHA is required for this user.
        Parameters:
        userName -
        Returns:
        true when CAPTCHA is required for this user.
      • incrementFailedCountAndCheckThreshold

        boolean incrementFailedCountAndCheckThreshold​(@NotNull
                                                      @NotNull String userName)
                                               throws IllegalArgumentException
        Returns true when CAPTCHA would be required the next time this user authenticates.
        Parameters:
        userName -
        Returns:
        true when CAPTCHA would be required the next time this user authenticates.
        Throws:
        IllegalArgumentException - when unable save login attempt to DB
      • getFailedLoginAttemptsCount

        int getFailedLoginAttemptsCount​(@Nullable
                                        @Nullable String userName)
        Get number of failed login attempts for user
        Parameters:
        userName -
        Returns:
      • resetFailedLoginAttemptsCount

        void resetFailedLoginAttemptsCount​(@Nullable
                                           @Nullable String userName)
        Reset number of failed login attempts for user.
        Parameters:
        userName -
        Throws:
        IllegalArgumentException - when unable save login attempt to DB