Class OAuth2TokenServiceCache.Default

java.lang.Object
com.sap.cloud.sdk.cloudplatform.security.OAuth2TokenServiceCache.Default
All Implemented Interfaces:
OAuth2TokenServiceCache
Enclosing interface:
OAuth2TokenServiceCache

public static final class OAuth2TokenServiceCache.Default extends Object implements OAuth2TokenServiceCache
Default implementation of the interface.
  • Method Details

    • getTokenService

      @Nonnull public com.sap.cloud.security.xsuaa.client.OAuth2TokenService getTokenService(@Nullable com.sap.cloud.security.config.ClientIdentity identity)
      Description copied from interface: OAuth2TokenServiceCache
      Get the token service. Optionally apply client identity secrets to the internal HttpClient.
      Specified by:
      getTokenService in interface OAuth2TokenServiceCache
      Parameters:
      identity - The client identity of a service binding.
      Returns:
      A new or cached instance of OAuth2TokenService.
    • invalidateCache

      public void invalidateCache()
      Description copied from interface: OAuth2TokenServiceCache
      Invalidate the cache.
      Specified by:
      invalidateCache in interface OAuth2TokenServiceCache