@Component(value="cuba_BruteForceUserCredentialsChecker") public class BruteForceUserCredentialsChecker extends java.lang.Object implements UserCredentialsChecker, org.springframework.core.Ordered
Modifier and Type | Field and Description |
---|---|
protected BruteForceProtectionAPI |
bruteForceProtectionAPI |
protected Messages |
messages |
protected static java.lang.String |
MSG_PACK |
HIGHEST_PLATFORM_PRECEDENCE, LOWEST_PLATFORM_PRECEDENCE
Constructor and Description |
---|
BruteForceUserCredentialsChecker() |
Modifier and Type | Method and Description |
---|---|
void |
check(Credentials credentials)
Checks if passed credentials object is valid.
|
int |
getOrder() |
protected void |
onAuthenticationFailure(AuthenticationFailureEvent event) |
protected static final java.lang.String MSG_PACK
@Inject protected Messages messages
@Inject protected BruteForceProtectionAPI bruteForceProtectionAPI
public void check(Credentials credentials) throws LoginException
UserCredentialsChecker
check
in interface UserCredentialsChecker
credentials
- credentialsLoginException
- if credentials object is invalid@Order(value=110) @EventListener protected void onAuthenticationFailure(AuthenticationFailureEvent event) throws LoginException
LoginException
public int getOrder()
getOrder
in interface org.springframework.core.Ordered