@ThreadSafe public final class SphereClientCredentials extends java.lang.Object implements ClientCredentials
| Modifier and Type | Method and Description |
|---|---|
static SphereClientCredentials |
createAndBeginRefreshInBackground(SphereClientConfig config,
OAuthClient oauthClient)
Creates an instance of ClientCredentials based on config.
|
java.lang.String |
getAccessToken()
Returns the OAuth access token.
|
void |
shutdown()
Shuts down internal thread pools.
|
public static SphereClientCredentials createAndBeginRefreshInBackground(SphereClientConfig config, OAuthClient oauthClient)
public java.lang.String getAccessToken()
ClientCredentialsgetAccessToken in interface ClientCredentialspublic void shutdown()