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
|
java.lang.Long |
countGuestFailures(org.cyclos.impl.access.FailedAction action,
java.lang.String remoteAddress)
Returns the number of guest failures for the given action and remote address
|
java.lang.Long |
countPasswordFailures(BasicUser user,
PasswordType passwordType)
Returns the number of password failures for the given user and password type.
|
java.lang.Long |
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 |
recordPasswordFailure(BasicUser user,
PasswordType passwordType,
java.lang.Integer maxAttempts,
java.lang.String remoteAddress)
Records a new password failure for the given user and password type.
|
boolean |
recordPrincipalFailure(java.lang.String remoteAddress,
UserLocatorVO locator,
java.lang.Integer maxAttempts,
TimeInterval blockTime)
Create a new record for the given remote address and user locator, returning whether the remote address is now blocked given the maximum number
of attempts and block time (both can be null)
|
boolean |
recordUserActionFailure(org.cyclos.impl.access.FailedAction action,
BasicUser user,
java.lang.Integer maxAttempts)
Create a new record for the given user action.
|
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
FrameworkExceptionjava.lang.Long countGuestFailures(org.cyclos.impl.access.FailedAction action,
java.lang.String remoteAddress)
throws FrameworkException
FrameworkExceptionjava.lang.Long countPasswordFailures(BasicUser user, PasswordType passwordType) throws FrameworkException
FrameworkExceptionjava.lang.Long countUserFailures(org.cyclos.impl.access.FailedAction action,
BasicUser user)
throws FrameworkException
FrameworkExceptionboolean isBlocked(java.lang.String remoteAddress)
throws FrameworkException
FrameworkExceptionboolean recordPasswordFailure(BasicUser user, PasswordType passwordType, java.lang.Integer maxAttempts, java.lang.String remoteAddress) 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)
throws FrameworkException
FrameworkException