Authentication authenticate(Authentication authentication) throws AuthenticationException
Authenticationobject, returning a fully populated
Authenticationobject (including granted authorities) if successful.
AuthenticationManager must honour the following contract concerning
DisabledExceptionmust be thrown if an account is disabled and the
AuthenticationManagercan test for this state.
LockedExceptionmust be thrown if an account is locked and the
AuthenticationManagercan test for account locking.
BadCredentialsExceptionmust be thrown if incorrect credentials are presented. Whilst the above exceptions are optional, an
AuthenticationManagermust always test credentials.
authentication- the authentication request object
AuthenticationException- if authentication fails