Interface AuthenticationStrategyDelegate

All Known Implementing Classes:
AbstractAuthenticationStrategyDelegate, AbstractOAuthClientAuthenticationStrategyDelegate, DefaultOIDCAuthenticationStrategyDelegate, FormLoginAuthenticationStrategyDelegate, GithubOAuthClientAuthenticationStrategyDelegate, GoogleOAuthClientAuthenticationStrategyDelegate

public interface AuthenticationStrategyDelegate
Used by the DefaultSessionAuthenticationStrategy to convert Authentication from various sources into OAuth2UserDetails.
Author:
Cade Rea (cade-rea)
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canHandle(org.springframework.security.core.Authentication authentication)
    Determine if this delegate can map the given Authentication token to an OAuth2UserDetails
    getOAuth2UserDetails(org.springframework.security.core.Authentication authentication)
    Map the Authentication token to an OAuth2UserDetails
  • Method Details

    • canHandle

      boolean canHandle(org.springframework.security.core.Authentication authentication)
      Determine if this delegate can map the given Authentication token to an OAuth2UserDetails
      Parameters:
      authentication - The authentication token
      Returns:
      Whether this delegate can map the token to an OAuth2UserDetails
    • getOAuth2UserDetails

      OAuth2UserDetails getOAuth2UserDetails(org.springframework.security.core.Authentication authentication)
      Map the Authentication token to an OAuth2UserDetails
      Parameters:
      authentication - The authentication token
      Returns:
      OAuth2UserDetails for the given authentication token