Class DefaultUnsuccessfulAuthenticationCounter
java.lang.Object
pl.edu.icm.unity.engine.api.authn.DefaultUnsuccessfulAuthenticationCounter
- All Implemented Interfaces:
UnsuccessfulAuthenticationCounter
public class DefaultUnsuccessfulAuthenticationCounter
extends Object
implements UnsuccessfulAuthenticationCounter
Counts unsuccessful authentication 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongvoidvoid
-
Constructor Details
-
DefaultUnsuccessfulAuthenticationCounter
public DefaultUnsuccessfulAuthenticationCounter(int maxAttepts, long blockTime)
-
-
Method Details
-
getRemainingBlockedTime
- Specified by:
getRemainingBlockedTimein interfaceUnsuccessfulAuthenticationCounter
-
unsuccessfulAttempt
- Specified by:
unsuccessfulAttemptin interfaceUnsuccessfulAuthenticationCounter
-
successfulAttempt
- Specified by:
successfulAttemptin interfaceUnsuccessfulAuthenticationCounter
-