Class SessionAuthenticationStore<R extends UstraAuthentication>
java.lang.Object
com.gsitm.ustra.java.security.authentication.store.SessionAuthenticationStore<R>
- Type Parameters:
R-
- All Implemented Interfaces:
UstraAuthenticationStore<R>
public class SessionAuthenticationStore<R extends UstraAuthentication>
extends Object
implements UstraAuthenticationStore<R>
UstraAuthenticationStore 인터페이스의 기본 구현체
Spring Security가 기본적으로 세션에 저장하므로 별도의 저장 불러오기 로직은 필요 없다.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget(UstraAuthenticationProperties properties, jakarta.servlet.http.HttpServletRequest request) 인증 정보 조회voidremove(UstraAuthenticationProperties properties) 인증 정보 제거voidset(UstraAuthenticationProperties properties, R authentication, boolean updateFlag) 인증 정보 저장
-
Constructor Details
-
SessionAuthenticationStore
public SessionAuthenticationStore()
-
-
Method Details
-
set
Description copied from interface:UstraAuthenticationStore인증 정보 저장- Specified by:
setin interfaceUstraAuthenticationStore<R extends UstraAuthentication>- Parameters:
properties- UstraAuthenticationPropertiesauthentication- 인증 정보updateFlag- 토큰 업데이트 여부 (로그인 시 : 기본 false, Exception 발생 시 true, 일반인증시: true)
-
get
public R get(UstraAuthenticationProperties properties, jakarta.servlet.http.HttpServletRequest request) Description copied from interface:UstraAuthenticationStore인증 정보 조회- Specified by:
getin interfaceUstraAuthenticationStore<R extends UstraAuthentication>- Parameters:
properties- UstraAuthenticationPropertiesrequest- HttpServletRequest- Returns:
- 인증 정보
-
remove
Description copied from interface:UstraAuthenticationStore인증 정보 제거- Specified by:
removein interfaceUstraAuthenticationStore<R extends UstraAuthentication>- Parameters:
properties- UstraAuthenticationProperties
-