Interface AuthenticationStrategyDelegate
-
- All Known Implementing Classes:
AbstractAuthenticationStrategyDelegate,AbstractOAuthClientAuthenticationStrategyDelegate,DefaultOIDCAuthenticationStrategyDelegate,FormLoginAuthenticationStrategyDelegate,GithubOAuthClientAuthenticationStrategyDelegate,GoogleOAuthClientAuthenticationStrategyDelegate
public interface AuthenticationStrategyDelegateUsed by theDefaultSessionAuthenticationStrategyto convertAuthenticationfrom various sources intoOAuth2UserDetails.- Author:
- Cade Rea (cade-rea)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanHandle(org.springframework.security.core.Authentication authentication)Determine if this delegate can map the given Authentication token to an OAuth2UserDetailsOAuth2UserDetailsgetOAuth2UserDetails(org.springframework.security.core.Authentication authentication)Map the Authentication token to an OAuth2UserDetails
-
-
-
Method Detail
-
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:
OAuth2UserDetailsfor the givenauthenticationtoken
-
-