Class OAuth2UserServiceCacheable

java.lang.Object
org.activiti.cloud.services.common.security.jwt.OAuth2UserServiceCacheable

public class OAuth2UserServiceCacheable extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    OAuth2UserServiceCacheable(org.springframework.security.oauth2.client.userinfo.OAuth2UserService oAuth2UserService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.security.oauth2.core.user.OAuth2User
    loadUser(org.springframework.security.oauth2.client.userinfo.OAuth2UserRequest userRequest, String cacheKey)
     
    org.springframework.security.oauth2.core.user.OAuth2User
    putUser(org.springframework.security.oauth2.core.user.OAuth2User user, String cacheKey)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OAuth2UserServiceCacheable

      public OAuth2UserServiceCacheable(org.springframework.security.oauth2.client.userinfo.OAuth2UserService oAuth2UserService)
  • Method Details

    • loadUser

      @Cacheable(value="userInfoApiCall", key="#cacheKey", sync=true) public org.springframework.security.oauth2.core.user.OAuth2User loadUser(org.springframework.security.oauth2.client.userinfo.OAuth2UserRequest userRequest, String cacheKey) throws org.springframework.security.oauth2.core.OAuth2AuthenticationException
      Throws:
      org.springframework.security.oauth2.core.OAuth2AuthenticationException
    • putUser

      @CachePut(value="userInfoApiCall", key="#cacheKey") public org.springframework.security.oauth2.core.user.OAuth2User putUser(org.springframework.security.oauth2.core.user.OAuth2User user, String cacheKey)