@Component(value="blJWTAuthenticationSuccessHandler") @ConditionalOnProperty(value="blc.auth.jwt.enabled") public class JWTAuthenticationSuccessHandler extends Object implements org.springframework.security.web.authentication.AuthenticationSuccessHandler
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.core.env.Environment |
environment |
protected JWTTokenService |
jwtTokenService |
| Constructor and Description |
|---|
JWTAuthenticationSuccessHandler(org.springframework.core.env.Environment environment,
JWTTokenService jwtTokenService) |
| Modifier and Type | Method and Description |
|---|---|
protected javax.servlet.http.Cookie |
buildRefreshTokenCookie(String refreshToken) |
protected int |
getRefreshTokenCookieMaxAge() |
protected String |
getRefreshTokenCookieName() |
void |
onAuthenticationSuccess(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication authentication) |
protected final org.springframework.core.env.Environment environment
protected final JWTTokenService jwtTokenService
public JWTAuthenticationSuccessHandler(org.springframework.core.env.Environment environment,
JWTTokenService jwtTokenService)
public void onAuthenticationSuccess(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication authentication)
throws IOException,
javax.servlet.ServletException
onAuthenticationSuccess in interface org.springframework.security.web.authentication.AuthenticationSuccessHandlerIOExceptionjavax.servlet.ServletExceptionprotected javax.servlet.http.Cookie buildRefreshTokenCookie(String refreshToken)
protected String getRefreshTokenCookieName()
protected int getRefreshTokenCookieMaxAge()
Copyright © 2017. All rights reserved.