Interface AuthenticationStrategyDelegate
-
- All Known Implementing Classes:
AbstractAuthenticationStrategyDelegate
,AbstractOAuthClientAuthenticationStrategyDelegate
,DefaultOIDCAuthenticationStrategyDelegate
,FormLoginAuthenticationStrategyDelegate
,GithubOAuthClientAuthenticationStrategyDelegate
,GoogleOAuthClientAuthenticationStrategyDelegate
public interface AuthenticationStrategyDelegate
Used by theDefaultSessionAuthenticationStrategy
to convertAuthentication
from various sources intoOAuth2UserDetails
.- Author:
- Cade Rea (cade-rea)
-
-
Method Summary
All Methods Instance Methods Abstract Methods 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 OAuth2UserDetailsOAuth2UserDetails
getOAuth2UserDetails(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:
OAuth2UserDetails
for the givenauthentication
token
-
-