public interface FailedActionHandler
| Modifier and Type | Method and Description |
|---|---|
void |
clearGuestFailures(org.cyclos.impl.access.FailedAction action,
java.lang.String remoteAddress)
Clears all the guest failures for the given action and remote address
|
void |
clearPasswordFailures(BasicUser user,
PasswordType passwordType)
Clears all the password failures for the given user and password type
|
void |
clearUserFailures(org.cyclos.impl.access.FailedAction action,
BasicUser user)
Clears all the user failures for the given action and user
|
int |
countGuestFailures(org.cyclos.impl.access.FailedAction action,
java.lang.String remoteAddress,
TimeInterval time)
Returns the number of guest failures for the given action and remote address
|
int |
countPasswordFailures(BasicUser user,
PasswordType passwordType)
Returns the number of password failures for the given user and password type.
|
int |
countUserFailures(org.cyclos.impl.access.FailedAction action,
BasicUser user)
Returns the number of user failures for the given action and user.
|
boolean |
isBlocked(java.lang.String remoteAddress)
Returns whether the given remote address is blocked
|
boolean |
recordForgotPasswordRequestFailure(java.lang.String remoteAddress,
UserLocatorVO locator,
java.lang.Integer maxAttempts,
TimeInterval blockTime)
Registers a transaction end listener to actually record a request forgot password attempt.
|
boolean |
recordPasswordFailure(BasicUser user,
PasswordType passwordType,
java.lang.Integer maxAttempts,
java.lang.String remoteAddress,
java.lang.Runnable onMaxReached)
Registers a transaction end listener to actually record the password failure.
|
boolean |
recordPrincipalFailure(java.lang.String remoteAddress,
UserLocatorVO locator,
java.lang.Integer maxAttempts,
TimeInterval blockTime)
Registers a transaction end listener to actually record the principal failure.
|
boolean |
recordUserActionFailure(org.cyclos.impl.access.FailedAction action,
BasicUser user,
java.lang.Integer maxAttempts,
java.lang.Runnable onMaxReached)
Registers a transaction end listener to actually record the user action failure.
|
void clearGuestFailures(org.cyclos.impl.access.FailedAction action,
java.lang.String remoteAddress)
throws FrameworkException
FrameworkExceptionvoid clearPasswordFailures(BasicUser user, PasswordType passwordType)
void clearUserFailures(org.cyclos.impl.access.FailedAction action,
BasicUser user)
throws FrameworkException
FrameworkExceptionint countGuestFailures(org.cyclos.impl.access.FailedAction action,
java.lang.String remoteAddress,
TimeInterval time)
throws FrameworkException
FrameworkExceptionint countPasswordFailures(BasicUser user, PasswordType passwordType) throws FrameworkException
FrameworkExceptionint countUserFailures(org.cyclos.impl.access.FailedAction action,
BasicUser user)
throws FrameworkException
FrameworkExceptionboolean isBlocked(java.lang.String remoteAddress)
throws FrameworkException
FrameworkExceptionboolean recordForgotPasswordRequestFailure(java.lang.String remoteAddress,
UserLocatorVO locator,
java.lang.Integer maxAttempts,
TimeInterval blockTime)
throws FrameworkException
FrameworkExceptionboolean recordPasswordFailure(BasicUser user, PasswordType passwordType, java.lang.Integer maxAttempts, java.lang.String remoteAddress, java.lang.Runnable onMaxReached) throws FrameworkException
FrameworkExceptionboolean recordPrincipalFailure(java.lang.String remoteAddress,
UserLocatorVO locator,
java.lang.Integer maxAttempts,
TimeInterval blockTime)
throws FrameworkException
FrameworkExceptionboolean recordUserActionFailure(org.cyclos.impl.access.FailedAction action,
BasicUser user,
java.lang.Integer maxAttempts,
java.lang.Runnable onMaxReached)
throws FrameworkException
FrameworkException