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
-
Method Summary
Modifier and TypeMethodDescriptionlong
void
void
-
Constructor Details
-
DefaultUnsuccessfulAuthenticationCounter
public DefaultUnsuccessfulAuthenticationCounter(int maxAttepts, long blockTime)
-
-
Method Details
-
getRemainingBlockedTime
- Specified by:
getRemainingBlockedTime
in interfaceUnsuccessfulAuthenticationCounter
-
unsuccessfulAttempt
- Specified by:
unsuccessfulAttempt
in interfaceUnsuccessfulAuthenticationCounter
-
successfulAttempt
- Specified by:
successfulAttempt
in interfaceUnsuccessfulAuthenticationCounter
-