Interface AuthenticationProvider<T extends Credentials>

All Known Implementing Classes:
BasicAuthenticationProvider, GoogleAuthenticationProvider, JWTAuthenticationProvider, KeycloakAuthenticationProvider, MicrosoftAuthenticationProvider, OAuth2AuthenticationProvider, OpenIDAuthenticationProvider
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface AuthenticationProvider<T extends Credentials>
Defines an authentication provider.
  • Method Summary

    Modifier and Type
    Method
    Description
    authenticate(T credentials)
    Authenticate a user with the given credentials.
  • Method Details

    • authenticate

      CompletableFuture<User> authenticate(@NotNull T credentials)
      Authenticate a user with the given credentials.
      Parameters:
      credentials - a Credentials object containing the information for authenticating the user.
      Returns:
      the result future