Interface AuthenticationManager
- 
- All Known Implementing Classes:
- ProviderManager
 
 public interface AuthenticationManagerProcesses anAuthenticationrequest.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description Authenticationauthenticate(Authentication authentication)Attempts to authenticate the passedAuthenticationobject, returning a fully populatedAuthenticationobject (including granted authorities) if successful.
 
- 
- 
- 
Method Detail- 
authenticateAuthentication authenticate(Authentication authentication) throws AuthenticationException Attempts to authenticate the passedAuthenticationobject, returning a fully populatedAuthenticationobject (including granted authorities) if successful.An AuthenticationManagermust honour the following contract concerning exceptions:- A DisabledExceptionmust be thrown if an account is disabled and theAuthenticationManagercan test for this state.
- A LockedExceptionmust be thrown if an account is locked and theAuthenticationManagercan test for account locking.
- A BadCredentialsExceptionmust be thrown if incorrect credentials are presented. Whilst the above exceptions are optional, anAuthenticationManagermust always test credentials.
 - Parameters:
- authentication- the authentication request object
- Returns:
- a fully authenticated object including credentials
- Throws:
- AuthenticationException- if authentication fails
 
- A 
 
- 
 
-