Class RedisThrottledSubmissionHandlerInterceptorAdapter

  • All Implemented Interfaces:
    org.apereo.cas.web.support.ThrottledSubmissionHandlerInterceptor, org.springframework.beans.factory.InitializingBean, org.springframework.web.servlet.AsyncHandlerInterceptor, org.springframework.web.servlet.HandlerInterceptor

    public class RedisThrottledSubmissionHandlerInterceptorAdapter
    extends org.apereo.cas.web.support.AbstractInspektrAuditHandlerInterceptorAdapter
    Works in conjunction with a redis database to block attempts to dictionary attack users.
    Since:
    6.1.0
    • Field Summary

      • Fields inherited from class org.apereo.cas.web.support.AbstractThrottledSubmissionHandlerInterceptorAdapter

        ACTION_THROTTLED_LOGIN_ATTEMPT
    • Constructor Summary

      Constructors 
      Constructor Description
      RedisThrottledSubmissionHandlerInterceptorAdapter​(org.apereo.cas.web.support.ThrottledSubmissionHandlerConfigurationContext configurationContext, org.springframework.data.redis.core.RedisTemplate redisTemplate)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean exceedsThreshold​(javax.servlet.http.HttpServletRequest request)  
      java.lang.String getName()  
      • Methods inherited from class org.apereo.cas.web.support.AbstractInspektrAuditHandlerInterceptorAdapter

        recordThrottle
      • Methods inherited from class org.apereo.cas.web.support.AbstractThrottledSubmissionHandlerInterceptorAdapter

        afterPropertiesSet, calculateFailureThresholdRateAndCompare, decrement, getConfigurationContext, getFailureInRangeCutOffDate, getThresholdRate, getUsernameParameterFromRequest, postHandle, preHandle, recordAuditAction, shouldResponseBeRecordedAsFailure, throttleRequest, toString
      • Methods inherited from class org.springframework.web.servlet.handler.HandlerInterceptorAdapter

        afterCompletion, afterConcurrentHandlingStarted
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.apereo.cas.web.support.ThrottledSubmissionHandlerInterceptor

        afterCompletion, afterConcurrentHandlingStarted, recordSubmissionFailure
    • Constructor Detail

      • RedisThrottledSubmissionHandlerInterceptorAdapter

        public RedisThrottledSubmissionHandlerInterceptorAdapter​(org.apereo.cas.web.support.ThrottledSubmissionHandlerConfigurationContext configurationContext,
                                                                 org.springframework.data.redis.core.RedisTemplate redisTemplate)
    • Method Detail

      • exceedsThreshold

        public boolean exceedsThreshold​(javax.servlet.http.HttpServletRequest request)
      • getName

        public java.lang.String getName()