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(org.jasig.inspektr.audit.AuditTrailManager auditTrailManager,
DataSource dataSource)
Instantiates a new inspektr throttled submission by ip address and username handler interceptor adapter.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
constructUsername(javax.servlet.http.HttpServletRequest request,
String usernameParameter)
Construct username from the request.
|
protected boolean |
exceedsThreshold(javax.servlet.http.HttpServletRequest request)
Determine whether threshold has been exceeded.
|
protected void |
recordSubmissionFailure(javax.servlet.http.HttpServletRequest request)
Record submission failure.
|
protected void |
recordThrottle(javax.servlet.http.HttpServletRequest request)
Record throttling event.
|
void |
setApplicationCode(String applicationCode) |
void |
setAuthenticationFailureCode(String authenticationFailureCode) |
afterPropertiesSet, getFailureRangeInSeconds, getFailureThreshold, getThresholdRate, getUsernameParameter, postHandle, preHandle, setFailureRangeInSeconds, setFailureThreshold, setUsernameParameter, toStringpublic InspektrThrottledSubmissionByIpAddressAndUsernameHandlerInterceptorAdapter(org.jasig.inspektr.audit.AuditTrailManager auditTrailManager,
DataSource dataSource)
auditTrailManager - the audit trail managerdataSource - the data sourceprotected boolean exceedsThreshold(javax.servlet.http.HttpServletRequest request)
AbstractThrottledSubmissionHandlerInterceptorAdapterexceedsThreshold in class AbstractThrottledSubmissionHandlerInterceptorAdapterrequest - the requestprotected void recordSubmissionFailure(javax.servlet.http.HttpServletRequest request)
AbstractThrottledSubmissionHandlerInterceptorAdapterrecordSubmissionFailure in class AbstractThrottledSubmissionHandlerInterceptorAdapterrequest - the requestprotected void recordThrottle(javax.servlet.http.HttpServletRequest request)
AbstractThrottledSubmissionHandlerInterceptorAdapterrecordThrottle in class AbstractThrottledSubmissionHandlerInterceptorAdapterrequest - the requestpublic final void setApplicationCode(String applicationCode)
public final void setAuthenticationFailureCode(String authenticationFailureCode)
Copyright © 2004-2016 Apereo. All Rights Reserved.