@Service(value="blJWTTokenService") @ConditionalOnProperty(name="blc.auth.jwt.enabled") public class JWTAuthenticationTokenServiceImpl extends Object implements AuthenticationTokenService
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.core.env.Environment |
environment |
| Constructor and Description |
|---|
JWTAuthenticationTokenServiceImpl(org.springframework.core.env.Environment environment) |
@Autowired public JWTAuthenticationTokenServiceImpl(org.springframework.core.env.Environment environment)
public ApiUserDTO parseAccessToken(String token) throws io.jsonwebtoken.ExpiredJwtException
parseAccessToken in interface AuthenticationTokenServiceio.jsonwebtoken.ExpiredJwtExceptionpublic ApiUserDTO parseRefreshToken(String token) throws io.jsonwebtoken.ExpiredJwtException
parseRefreshToken in interface AuthenticationTokenServiceio.jsonwebtoken.ExpiredJwtExceptionprotected ApiUserDTO parseTokenUsingSecret(String token, String secret)
public String generateAuthenticationToken(Long userId, String username, boolean isCrossAppAuth, String commaSeparatedAuthorities)
generateAuthenticationToken in interface AuthenticationTokenServicepublic String generateRefreshToken(Long userId, String username, boolean isCrossAppAuth, String commaSeparatedAuthorities)
generateRefreshToken in interface AuthenticationTokenServicepublic Long parseCustomerToken(String customerToken)
parseCustomerToken in interface AuthenticationTokenServicepublic String generateCustomerToken(Long customerId)
generateCustomerToken in interface AuthenticationTokenServicepublic javax.servlet.http.Cookie buildRefreshTokenCookie(String refreshToken)
buildRefreshTokenCookie in interface AuthenticationTokenServiceprotected String getAuthenticationSecret()
protected Long getRefreshTokenExpirationTime()
protected String getRefreshSecret()
protected String getRefreshTokenCookieName()
protected int getRefreshTokenCookieMaxAge()
protected boolean isRefreshTokenSecure()
protected Long getAuthenticationTokenExpirationTime()
protected Long getCustomerTokenExpirationTime()
protected String getCustomerSecret()
Copyright © 2020. All rights reserved.