Class RememberMeLoginAuthenticationStrategyDelegate
java.lang.Object
com.broadleafcommerce.auth.authorization.security.rememberme.service.RememberMeLoginAuthenticationStrategyDelegate
- All Implemented Interfaces:
AuthenticationStrategyDelegate
public class RememberMeLoginAuthenticationStrategyDelegate
extends Object
implements AuthenticationStrategyDelegate
AuthenticationStrategyDelegate
to convert RememberMeAuthenticationToken
to
OAuth2UserDetails
. With remember me login, the OAuth2UserDetails
are already on
the token.
This is invoked by DefaultSessionAuthenticationStrategy
after a successful remember me
auto-login.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canHandle
(org.springframework.security.core.Authentication authentication, AuthorizedClient client) Determine if this delegate can map the given Authentication token to an OAuth2UserDetailsgetOAuth2UserDetails
(org.springframework.security.core.Authentication authentication, AuthorizedClient client) Map the Authentication token to an OAuth2UserDetailsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.auth.user.web.authentication.session.AuthenticationStrategyDelegate
canHandle, getOAuth2UserDetails, isAdminClientHandler, isCustomerClientHandler
-
Constructor Details
-
RememberMeLoginAuthenticationStrategyDelegate
public RememberMeLoginAuthenticationStrategyDelegate()
-
-
Method Details
-
canHandle
public boolean canHandle(org.springframework.security.core.Authentication authentication, @Nullable AuthorizedClient client) Description copied from interface:AuthenticationStrategyDelegate
Determine if this delegate can map the given Authentication token to an OAuth2UserDetails- Specified by:
canHandle
in interfaceAuthenticationStrategyDelegate
- Parameters:
authentication
- The authentication tokenclient
- The authorized client- Returns:
- Whether this delegate can map the token to an OAuth2UserDetails
-
getOAuth2UserDetails
public OAuth2UserDetails getOAuth2UserDetails(org.springframework.security.core.Authentication authentication, @Nullable AuthorizedClient client) Description copied from interface:AuthenticationStrategyDelegate
Map the Authentication token to an OAuth2UserDetails- Specified by:
getOAuth2UserDetails
in interfaceAuthenticationStrategyDelegate
- Parameters:
authentication
- The authentication tokenclient
- The authorized client- Returns:
OAuth2UserDetails
for the givenauthentication
token
-