/** * Record a failed authentication attempt against the configured counter, * optionally incrementing the account lockout counter. * * @param profileRequestContext current profile request context * @param inc true iff lockout counter should be incremented * * @since 3.3.0 */ protected void recordFailure(@Nonnull final ProfileRequestContext profileRequestContext, final boolean inc) { recordFailure(); if (inc && lockoutManager != null) { lockoutManager.increment(profileRequestContext); } }
if (lockoutManager.increment(profileRequestContext)) { response.setStatus(HttpServletResponse.SC_NO_CONTENT); } else {