Creates a LoginValidationValveImpl instance which can evaluate
PasswordCredential.getAuthenticationFailures to determine if a user only has one login attempt available before the maxNumberOfAuthenticationFailures parameter
value is reached and the credential will be disabled.
The provided maxNumberOfAuthenticationFailures value should be equal to the value configured for the
MaxPasswordAuthenticationFailuresInterceptor (and > 2 to be useful).
|