public class InspektrThrottledSubmissionByIpAddressAndUsernameHandlerInterceptorAdapter extends AbstractThrottledSubmissionHandlerInterceptorAdapter
Defines a new Inspektr Action "THROTTLED_LOGIN_ATTEMPT" which keeps track of failed login attempts that don't result in AUTHENTICATION_FAILED methods
This relies on the default Inspektr table layout and username construction. The username construction can be overriden in a subclass.
logger| Constructor and Description |
|---|
InspektrThrottledSubmissionByIpAddressAndUsernameHandlerInterceptorAdapter(com.github.inspektr.audit.AuditTrailManager auditTrailManager,
DataSource dataSource) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
constructUsername(javax.servlet.http.HttpServletRequest request,
String usernameParameter) |
protected boolean |
exceedsThreshold(javax.servlet.http.HttpServletRequest request) |
protected void |
recordSubmissionFailure(javax.servlet.http.HttpServletRequest request) |
protected void |
recordThrottle(javax.servlet.http.HttpServletRequest request) |
void |
setApplicationCode(String applicationCode) |
void |
setAuthenticationFailureCode(String authenticationFailureCode) |
afterPropertiesSet, getFailureRangeInSeconds, getFailureThreshold, getThresholdRate, getUsernameParameter, postHandle, preHandle, setFailureRangeInSeconds, setFailureThreshold, setUsernameParameterpublic InspektrThrottledSubmissionByIpAddressAndUsernameHandlerInterceptorAdapter(com.github.inspektr.audit.AuditTrailManager auditTrailManager,
DataSource dataSource)
protected boolean exceedsThreshold(javax.servlet.http.HttpServletRequest request)
exceedsThreshold in class AbstractThrottledSubmissionHandlerInterceptorAdapterprotected void recordSubmissionFailure(javax.servlet.http.HttpServletRequest request)
recordSubmissionFailure in class AbstractThrottledSubmissionHandlerInterceptorAdapterprotected void recordThrottle(javax.servlet.http.HttpServletRequest request)
recordThrottle in class AbstractThrottledSubmissionHandlerInterceptorAdapterpublic final void setApplicationCode(String applicationCode)
public final void setAuthenticationFailureCode(String authenticationFailureCode)
Copyright © 2004-2014 Jasig. All Rights Reserved.