public class DefaultSessionAuthenticationStrategy extends Object implements org.springframework.security.web.authentication.session.SessionAuthenticationStrategy
AuthenticationStrategyDelegate
to facilitate loading an OAuth2UserDetails
from an
Authentication
.Constructor and Description |
---|
DefaultSessionAuthenticationStrategy(StatelessUtil statelessUtil,
List<AuthenticationStrategyDelegate> authenticationStrategyDelegates) |
Modifier and Type | Method and Description |
---|---|
protected List<AuthenticationStrategyDelegate> |
getAuthenticationStrategyDelegates() |
protected OAuth2UserDetails |
getOAuth2UserDetails(@NonNull org.springframework.security.core.Authentication authentication) |
protected StatelessUtil |
getStatelessUtil() |
void |
onAuthentication(@NonNull org.springframework.security.core.Authentication authentication,
@NonNull javax.servlet.http.HttpServletRequest request,
@NonNull javax.servlet.http.HttpServletResponse response) |
protected void |
setSessionCookie(@NonNull javax.servlet.http.HttpServletResponse response,
@NonNull OAuth2UserDetails oAuth2UserDetails) |
public DefaultSessionAuthenticationStrategy(StatelessUtil statelessUtil, List<AuthenticationStrategyDelegate> authenticationStrategyDelegates)
public void onAuthentication(@NonNull @NonNull org.springframework.security.core.Authentication authentication, @NonNull @NonNull javax.servlet.http.HttpServletRequest request, @NonNull @NonNull javax.servlet.http.HttpServletResponse response) throws org.springframework.security.web.authentication.session.SessionAuthenticationException
onAuthentication
in interface org.springframework.security.web.authentication.session.SessionAuthenticationStrategy
org.springframework.security.web.authentication.session.SessionAuthenticationException
protected OAuth2UserDetails getOAuth2UserDetails(@NonNull @NonNull org.springframework.security.core.Authentication authentication)
protected void setSessionCookie(@NonNull @NonNull javax.servlet.http.HttpServletResponse response, @NonNull @NonNull OAuth2UserDetails oAuth2UserDetails)
protected StatelessUtil getStatelessUtil()
protected List<AuthenticationStrategyDelegate> getAuthenticationStrategyDelegates()
Copyright © 2021. All rights reserved.