org.jasig.cas.web.support
Class AbstractInMemoryThrottledSubmissionHandlerInterceptorAdapter
java.lang.Object
org.springframework.web.servlet.handler.HandlerInterceptorAdapter
org.jasig.cas.web.support.AbstractThrottledSubmissionHandlerInterceptorAdapter
org.jasig.cas.web.support.AbstractInMemoryThrottledSubmissionHandlerInterceptorAdapter
- All Implemented Interfaces:
- org.springframework.web.servlet.HandlerInterceptor
- Direct Known Subclasses:
- InMemoryThrottledSubmissionByIpAddressAndUsernameHandlerInterceptorAdapter, InMemoryThrottledSubmissionByIpAddressHandlerInterceptorAdapter
public abstract class AbstractInMemoryThrottledSubmissionHandlerInterceptorAdapter
- extends AbstractThrottledSubmissionHandlerInterceptorAdapter
Implementation of a HandlerInterceptorAdapter that keeps track of a mapping
of IP Addresses to number of failures to authenticate.
Note, this class relies on an external method for decrementing the counts (i.e. a Quartz Job) and runs independent of the
threshold of the parent.
- Since:
- 3.0.5
- Version:
- $Revision: 48180 $ $Date: 2010-03-14 00:05:58 -0500 (Sun, 14 Mar 2010) $
- Author:
- Scott Battaglia
|
Method Summary |
protected abstract java.lang.String |
constructKey(javax.servlet.http.HttpServletRequest request,
java.lang.String usernameParameter)
|
void |
decrementCounts()
This class relies on an external configuration to clean it up. |
protected int |
findCount(javax.servlet.http.HttpServletRequest request,
java.lang.String usernameParameter,
int failureRangeInSeconds)
|
protected void |
updateCount(javax.servlet.http.HttpServletRequest request,
java.lang.String usernameParameter)
|
| Methods inherited from class org.springframework.web.servlet.handler.HandlerInterceptorAdapter |
afterCompletion |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractInMemoryThrottledSubmissionHandlerInterceptorAdapter
public AbstractInMemoryThrottledSubmissionHandlerInterceptorAdapter()
findCount
protected final int findCount(javax.servlet.http.HttpServletRequest request,
java.lang.String usernameParameter,
int failureRangeInSeconds)
- Specified by:
findCount in class AbstractThrottledSubmissionHandlerInterceptorAdapter
updateCount
protected final void updateCount(javax.servlet.http.HttpServletRequest request,
java.lang.String usernameParameter)
- Specified by:
updateCount in class AbstractThrottledSubmissionHandlerInterceptorAdapter
constructKey
protected abstract java.lang.String constructKey(javax.servlet.http.HttpServletRequest request,
java.lang.String usernameParameter)
decrementCounts
public final void decrementCounts()
- This class relies on an external configuration to clean it up. It ignores the threshold data in the parent class.
Copyright © 2004-2010 Java Architectures Special Interest Group. All Rights Reserved.