public class TokenSupplier extends Object implements SwappableCredentialSupport, com.google.common.base.Supplier<String>
TokenSDK.TokenClient. This supplier is configured to use an
interchangeable AuthConfigurationProvider through the use of
SwappableCredentialSupport.swapCredentials(String, String, String). This adds support for pluggable
credentials during runtime, which may be useful during cases where app-level access tokens need to be replaced with
user-level access tokens.| Constructor and Description |
|---|
TokenSupplier(AuthConfigurationProvider provider)
Initializing constructor.
|
public TokenSupplier(@Nonnull
AuthConfigurationProvider provider)
provider - The auth config provider to set.public void swapCredentials(@Nonnull@NotEmpty
String clientId,
@Nonnull@NotEmpty
String secret,
String appId)
swapCredentials in interface SwappableCredentialSupportclientId - The client id.secret - The client secret.appId - The application id.Copyright © 2015 Covisint. All rights reserved.