Class RedisUstraJwtRefreshTokenStore
java.lang.Object
com.gsitm.ustra.java.security.jwt.redis.RedisUstraJwtRefreshTokenStore
- All Implemented Interfaces:
UstraJwtRefreshTokenStore
REDIS 기반 JWT 토큰 서비스
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.RedisUstraJwtRefreshTokenStore(UstraJwtAuthenticationParser jwtAuthenticationParser) -
Method Summary
Modifier and TypeMethodDescriptioncreateRefreshToken(UstraJwtAuthentication authentication, String accessToken, UstraJwtAuthenticationProperties properties, Long validSeconds, boolean checkDuplication) Refresh Token 생성get(String accessToken, String refreshToken, UstraJwtAuthenticationProperties properties, boolean checkDuplication) refresh 토큰 정보 조회getTokenUsedList(List<String> refreshTokens) 리프레시 토큰 사용 목록 조회refresh(String accessToken, String refreshToken, io.jsonwebtoken.Claims claims, UstraJwtAuthenticationProperties properties, boolean reUse) Refresh Token 재사용 처리void토큰 제거voidupdatePayload(UstraJwtAuthenticationProperties properties, String refreshToken, String accessToken) Access Token 업데이트Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.gsitm.ustra.java.security.jwt.authentication.store.UstraJwtRefreshTokenStore
createTokenKey, removeExpiredTokens
-
Constructor Details
-
RedisUstraJwtRefreshTokenStore
public RedisUstraJwtRefreshTokenStore()Deprecated. -
RedisUstraJwtRefreshTokenStore
-
-
Method Details
-
get
public UstraJwtRefreshTokenModel get(String accessToken, String refreshToken, UstraJwtAuthenticationProperties properties, boolean checkDuplication) Description copied from interface:UstraJwtRefreshTokenStorerefresh 토큰 정보 조회- Specified by:
getin interfaceUstraJwtRefreshTokenStore- Parameters:
accessToken- access tokenrefreshToken- refresh tokenproperties- jwt 프로퍼티checkDuplication- 중복체크 여부- Returns:
-
createRefreshToken
public String createRefreshToken(UstraJwtAuthentication authentication, String accessToken, UstraJwtAuthenticationProperties properties, Long validSeconds, boolean checkDuplication) Description copied from interface:UstraJwtRefreshTokenStoreRefresh Token 생성- Specified by:
createRefreshTokenin interfaceUstraJwtRefreshTokenStore- Parameters:
authentication- 인증 정보accessToken- access tokenproperties- jwt 프로퍼티validSeconds- 유효 시간(초)checkDuplication- 중복체크 여부- Returns:
- refresh 토큰 문자
-
refresh
public UstraJwtRefreshTokenModel refresh(String accessToken, String refreshToken, io.jsonwebtoken.Claims claims, UstraJwtAuthenticationProperties properties, boolean reUse) Description copied from interface:UstraJwtRefreshTokenStoreRefresh Token 재사용 처리- Specified by:
refreshin interfaceUstraJwtRefreshTokenStorereUse- 토큰 키 재사용 여부- Returns:
-
updatePayload
public void updatePayload(UstraJwtAuthenticationProperties properties, String refreshToken, String accessToken) Description copied from interface:UstraJwtRefreshTokenStoreAccess Token 업데이트- Specified by:
updatePayloadin interfaceUstraJwtRefreshTokenStore
-
remove
Description copied from interface:UstraJwtRefreshTokenStore토큰 제거- Specified by:
removein interfaceUstraJwtRefreshTokenStore
-
getTokenUsedList
Description copied from interface:UstraJwtRefreshTokenStore리프레시 토큰 사용 목록 조회- Specified by:
getTokenUsedListin interfaceUstraJwtRefreshTokenStore
-