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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.sap.cloud.sdk.cloudplatform.security.OAuth2TokenServiceCache
OAuth2TokenServiceCache.Default -
Method Summary
Modifier and TypeMethodDescriptioncom.sap.cloud.security.xsuaa.client.OAuth2TokenServicegetTokenService(com.sap.cloud.security.config.ClientIdentity identity) Get the token service.voidInvalidate the cache.
-
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:OAuth2TokenServiceCacheGet the token service. Optionally apply client identity secrets to the internalHttpClient.- Specified by:
getTokenServicein interfaceOAuth2TokenServiceCache- 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:OAuth2TokenServiceCacheInvalidate the cache.- Specified by:
invalidateCachein interfaceOAuth2TokenServiceCache
-