org.jasig.cas.web.support
Class InMemoryThrottledSubmissionByIpAddressHandlerInterceptorAdapter

java.lang.Object
  extended by org.springframework.web.servlet.handler.HandlerInterceptorAdapter
      extended by org.jasig.cas.web.support.AbstractThrottledSubmissionHandlerInterceptorAdapter
          extended by org.jasig.cas.web.support.AbstractInMemoryThrottledSubmissionHandlerInterceptorAdapter
              extended by org.jasig.cas.web.support.InMemoryThrottledSubmissionByIpAddressHandlerInterceptorAdapter
All Implemented Interfaces:
org.springframework.web.servlet.HandlerInterceptor

public final class InMemoryThrottledSubmissionByIpAddressHandlerInterceptorAdapter
extends AbstractInMemoryThrottledSubmissionHandlerInterceptorAdapter

Throttles access attempts for failed logins by IP Address. This stores the attempts in memory. This is not good for a clustered environment unless the intended behavior is that this blocking is per-machine.

Since:
3.3.5
Version:
$Revision$ $Date$
Author:
Scott Battaglia

Field Summary
 
Fields inherited from class org.jasig.cas.web.support.AbstractThrottledSubmissionHandlerInterceptorAdapter
log
 
Constructor Summary
InMemoryThrottledSubmissionByIpAddressHandlerInterceptorAdapter()
           
 
Method Summary
protected  java.lang.String constructKey(javax.servlet.http.HttpServletRequest request, java.lang.String usernameParameter)
           
 
Methods inherited from class org.jasig.cas.web.support.AbstractInMemoryThrottledSubmissionHandlerInterceptorAdapter
decrementCounts, findCount, updateCount
 
Methods inherited from class org.jasig.cas.web.support.AbstractThrottledSubmissionHandlerInterceptorAdapter
postHandle, preHandle, setFailureRangeInSeconds, setFailureThreshold, setUsernameParameter
 
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
 

Constructor Detail

InMemoryThrottledSubmissionByIpAddressHandlerInterceptorAdapter

public InMemoryThrottledSubmissionByIpAddressHandlerInterceptorAdapter()
Method Detail

constructKey

protected java.lang.String constructKey(javax.servlet.http.HttpServletRequest request,
                                        java.lang.String usernameParameter)
Specified by:
constructKey in class AbstractInMemoryThrottledSubmissionHandlerInterceptorAdapter


Copyright © 2004-2010 Java Architectures Special Interest Group. All Rights Reserved.