Class HvlAsyncTokenContextImpl

java.lang.Object
tr.com.havelsan.javarch.oauth.async.token.provider.context.HvlAsyncTokenContextImpl
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, HvlAsyncTokenContext

@Component @Scope("singleton") public class HvlAsyncTokenContextImpl extends Object implements HvlAsyncTokenContext, org.springframework.beans.factory.InitializingBean
The implementation class that holds the token data
  • Constructor Details

    • HvlAsyncTokenContextImpl

      public HvlAsyncTokenContextImpl(HvlAsyncTokenProperties asyncTokenProperties)
      Instantiates a new HvlAsyncTokenContextImpl.
      Parameters:
      asyncTokenProperties - the async token properties
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • isEnabled

      public boolean isEnabled()
      Is enabled.
      Specified by:
      isEnabled in interface HvlAsyncTokenContext
      Returns:
      the boolean
    • getAvailableUrl

      public List<String> getAvailableUrl()
      Gets available url.
      Specified by:
      getAvailableUrl in interface HvlAsyncTokenContext
      Returns:
      the available url
    • getAuthentication

      public tr.com.havelsan.javarch.security.common.model.HvlAuthenticationToken getAuthentication()
      Gets authentication.
      Specified by:
      getAuthentication in interface HvlAsyncTokenContext
      Returns:
      the authentication
    • getAvailableFeignTarget

      public List<String> getAvailableFeignTarget()
      Gets available feign target.
      Specified by:
      getAvailableFeignTarget in interface HvlAsyncTokenContext
      Returns:
      the available feign target
    • setAuthentication

      public void setAuthentication(tr.com.havelsan.javarch.security.common.model.HvlAuthenticationToken authenticationToken)
      Sets authentication.
      Specified by:
      setAuthentication in interface HvlAsyncTokenContext
      Parameters:
      authenticationToken - the authentication token
    • clearAuthentication

      public void clearAuthentication()
      Clear authentication.
      Specified by:
      clearAuthentication in interface HvlAsyncTokenContext