Interface AuthenticationProvider
- All Known Implementing Classes:
DaoAuthenticationProvider, JwtAuthenticationProvider
public interface AuthenticationProvider
One way of checking an
Authentication: a ProviderManager asks each of its
providers that supports the token's class.-
Method Summary
Modifier and TypeMethodDescriptionauthenticate(Authentication authentication) The accepted authentication, or null when this provider cannot decide and the next one should be asked.booleanWhether this provider checks tokens of this class.
-
Method Details
-
authenticate
The accepted authentication, or null when this provider cannot decide and the next one should be asked.
Throws
AuthenticationException: when the token is refused
-
supports
Whether this provider checks tokens of this class.
-