Interface AccessTokenCache.Builder

    • Method Detail

      • withExternalCache

        AccessTokenCache.Builder withExternalCache​(org.springframework.cache.Cache externalCache)
        With external cache.
        Parameters:
        externalCache - the external cache
        Returns:
        the builder
      • withExpirationTimeThreshold

        AccessTokenCache.Builder withExpirationTimeThreshold​(Duration duration)
        With expiration time threshold.
        Parameters:
        duration - the duration
        Returns:
        the builder
      • withKeyPrefix

        AccessTokenCache.Builder withKeyPrefix​(String keyPrefix)
        With key prefix.
        Parameters:
        keyPrefix - the key prefix
        Returns:
        the builder
      • build

        AccessTokenCache build()
        Build access token cache.
        Returns:
        the access token cache