Class MongoDbThrottledSubmissionHandlerInterceptorAdapter

  • 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 MongoDbThrottledSubmissionHandlerInterceptorAdapter
    extends org.apereo.cas.web.support.AbstractInspektrAuditHandlerInterceptorAdapter
    Works in conjunction with a Mongo database to block attempts to dictionary attack users.
    Since:
    5.3.0
    • Field Summary

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

        ACTION_THROTTLED_LOGIN_ATTEMPT
    • Constructor Summary

      Constructors 
      Constructor Description
      MongoDbThrottledSubmissionHandlerInterceptorAdapter​(org.apereo.cas.web.support.ThrottledSubmissionHandlerConfigurationContext configurationContext, org.springframework.data.mongodb.core.MongoTemplate mongoTemplate, java.lang.String collectionName)  
    • 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

      • MongoDbThrottledSubmissionHandlerInterceptorAdapter

        public MongoDbThrottledSubmissionHandlerInterceptorAdapter​(org.apereo.cas.web.support.ThrottledSubmissionHandlerConfigurationContext configurationContext,
                                                                   org.springframework.data.mongodb.core.MongoTemplate mongoTemplate,
                                                                   java.lang.String collectionName)
    • Method Detail

      • exceedsThreshold

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

        public java.lang.String getName()