Class UnsuccessfulAccessCounterBase
java.lang.Object
pl.edu.icm.unity.engine.api.authn.UnsuccessfulAccessCounterBase
- All Implemented Interfaces:
UnsuccessfulAccessCounter
- Direct Known Subclasses:
DefaultUnsuccessfulAuthenticationCounter
,VaadinInternalUnsuccessfulRequestsCounter
Counts unsuccessful access attempts per client's IP address.
Configured with maximum number of attempts. Signals if the access should be blocked.
Thread safe.
- Author:
- K. Benedyczak
-
Constructor Summary
ConstructorDescriptionUnsuccessfulAccessCounterBase
(org.apache.logging.log4j.Logger log, int maxAttepts, long blockTime) -
Method Summary
Modifier and TypeMethodDescriptionlong
void
void
-
Constructor Details
-
UnsuccessfulAccessCounterBase
public UnsuccessfulAccessCounterBase(org.apache.logging.log4j.Logger log, int maxAttepts, long blockTime)
-
-
Method Details
-
getRemainingBlockedTime
- Specified by:
getRemainingBlockedTime
in interfaceUnsuccessfulAccessCounter
-
unsuccessfulAttempt
- Specified by:
unsuccessfulAttempt
in interfaceUnsuccessfulAccessCounter
-
successfulAttempt
- Specified by:
successfulAttempt
in interfaceUnsuccessfulAccessCounter
-