Class UstraCachedUserDetailProvider<S extends UstraAuthenticationRequestToken,R extends UstraAuthentication,U extends UstraUser>

java.lang.Object
com.gsitm.ustra.java.security.authentication.user.UstraCachedUserDetailProvider<S,R,U>
Type Parameters:
S - 요청 유형
R - 응답 Authentication 유형
U - 사용자 유형
All Implemented Interfaces:
UstraUserDetailProvider<S,R>

public abstract class UstraCachedUserDetailProvider<S extends UstraAuthenticationRequestToken,R extends UstraAuthentication,U extends UstraUser> extends Object implements UstraUserDetailProvider<S,R>
캐시를 사용하는 User detail provider
  • Constructor Details

    • UstraCachedUserDetailProvider

      public UstraCachedUserDetailProvider(Class<U> userClass)
  • Method Details

    • getInternalUserDetails

      protected abstract UstraUser getInternalUserDetails(S authenticationRequestToken)
      인증 요청 토큰으로 사용자 정보 조회
      Parameters:
      authenticationRequestToken - 인증 요청 토큰
      Returns:
    • getInternalUserDetails

      protected abstract UstraUser getInternalUserDetails(R authentication)
      인증 정보를 사용자 정보 조회
      Parameters:
      authentication -
      Returns:
    • getCache

      protected abstract org.springframework.cache.Cache getCache()
      캐시 객체 조회
      Returns:
    • getUserDetails

      public UstraUser getUserDetails(S authenticationRequestToken)
      Description copied from interface: UstraUserDetailProvider
      인증 요청 토큰으로 사용자 정보 조회
      Specified by:
      getUserDetails in interface UstraUserDetailProvider<S extends UstraAuthenticationRequestToken,R extends UstraAuthentication>
      Parameters:
      authenticationRequestToken - 인증 토큰
      Returns:
      사용자 객체
    • getUserDetails

      public UstraUser getUserDetails(R authentication)
      Description copied from interface: UstraUserDetailProvider
      인증 정보로 사용자 정보 조회 (authentication 객체에 사용자 정보가 이미 존재한다면 return 해야 함. : 오버헤드 회피)
      Specified by:
      getUserDetails in interface UstraUserDetailProvider<S extends UstraAuthenticationRequestToken,R extends UstraAuthentication>
      Parameters:
      authentication - 인증 객체
      Returns:
      사용자 객체