Class UnsuccessfulAuthenticationCounter
- java.lang.Object
-
- pl.edu.icm.unity.engine.api.authn.UnsuccessfulAuthenticationCounter
-
public class UnsuccessfulAuthenticationCounter extends java.lang.Object
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 Constructor Description UnsuccessfulAuthenticationCounter(int maxAttepts, long blockTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getRemainingBlockedTime(java.lang.String ip)
void
successfulAttempt(java.lang.String ip)
void
unsuccessfulAttempt(java.lang.String ip)
-