public class FormLoginAuthenticationStrategyDelegate extends Object implements AuthenticationStrategyDelegate
AuthenticationStrategyDelegate
to convert FormLoginAuthenticationToken
to
OAuth2UserDetails
. With form login, the OAuth2UserDetails
are already on the
token.Constructor and Description |
---|
FormLoginAuthenticationStrategyDelegate() |
Modifier and Type | Method and Description |
---|---|
boolean |
canHandle(@NonNull org.springframework.security.core.Authentication authentication)
Determine if this delegate can map the given Authentication token to an OAuth2UserDetails
|
OAuth2UserDetails |
getOAuth2UserDetails(@NonNull org.springframework.security.core.Authentication authentication)
Map the Authentication token to an OAuth2UserDetails
|
public FormLoginAuthenticationStrategyDelegate()
public boolean canHandle(@NonNull @NonNull org.springframework.security.core.Authentication authentication)
AuthenticationStrategyDelegate
canHandle
in interface AuthenticationStrategyDelegate
authentication
- The authentication tokenpublic OAuth2UserDetails getOAuth2UserDetails(@NonNull @NonNull org.springframework.security.core.Authentication authentication)
AuthenticationStrategyDelegate
getOAuth2UserDetails
in interface AuthenticationStrategyDelegate
authentication
- The authentication tokenOAuth2UserDetails
for the given authentication
tokenCopyright © 2021. All rights reserved.