public interface AuthenticationProviderRealizations of this type are responsible for checking validity of various credentials and giving back authentication which defines access scope for authenticated user or system.
- Łukasz Dywicki - Initial contribution
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
authenticate(Credentials credentials)Verify given credentials and give back authentication if they are valid.
supports(Class<? extends Credentials> type)Additional method to verify if given authentication provider can handle given type of credentials.
Authentication authenticate(Credentials credentials) throws AuthenticationExceptionVerify given credentials and give back authentication if they are valid.
credentials- User credentials.
- null if credentials were not valid for this provider
AuthenticationException- if authentication failed due to credentials mismatch.