Package org.apereo.cas.web.support
Class MongoDbThrottledSubmissionHandlerInterceptorAdapter
- java.lang.Object
-
- org.springframework.web.servlet.handler.HandlerInterceptorAdapter
-
- org.apereo.cas.web.support.AbstractThrottledSubmissionHandlerInterceptorAdapter
-
- org.apereo.cas.web.support.AbstractInspektrAuditHandlerInterceptorAdapter
-
- org.apereo.cas.web.support.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.AbstractInspektrAuditHandlerInterceptorAdapterWorks in conjunction with a Mongo database to block attempts to dictionary attack users.- Since:
- 5.3.0
-
-
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 booleanexceedsThreshold(javax.servlet.http.HttpServletRequest request)java.lang.StringgetName()-
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
-
-
-
-
Constructor Detail
-
MongoDbThrottledSubmissionHandlerInterceptorAdapter
public MongoDbThrottledSubmissionHandlerInterceptorAdapter(org.apereo.cas.web.support.ThrottledSubmissionHandlerConfigurationContext configurationContext, org.springframework.data.mongodb.core.MongoTemplate mongoTemplate, java.lang.String collectionName)
-
-