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 Type
    Method
    Description
    authenticate(Authentication authentication)
    The accepted authentication, or null when this provider cannot decide and the next one should be asked.
    boolean
    supports(Class<?> authentication)
    Whether this provider checks tokens of this class.
  • Method Details

    • authenticate

      Authentication authenticate(Authentication authentication)

      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

      boolean supports(Class<?> authentication)
      Whether this provider checks tokens of this class.