public class TokenSDK extends TokenClientFactory
| Modifier and Type | Class and Description |
|---|---|
static interface |
TokenSDK.TokenClient
Client interface for the
Token resource APIs. |
| Constructor and Description |
|---|
TokenSDK(String serviceUrl)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected TokenClientImpl |
buildResourceClient(TokenClientBuilder builder) |
TokenClientImpl |
create() |
protected AuthConfigurationProvider |
getAuthConfigProvider()
Method responsible for returning a
AuthConfigurationProvider. |
TokenSDK.TokenClient |
newClient()
Creates a new token client.
|
TokenSDK |
setAuthConfigProvider(AuthConfigurationProvider provider)
Set a custom auth configuration provider via direct injection.
|
newBuilderbuildHttpClient, getCacheSpec, getConnectionCloseAfterResponseEnabled, getConnectionTimeout, getContentCharSet, getContentCompressionEnabled, getCookiesEnabled, getFollowRedirects, getHttpProxySpec, getMaxConcurrentRequests, getMaxRedirects, getServiceBaseUrl, getSocketBufferSize, getSocketTimeout, getSourceAddress, populateBaseBuilder, populateHttpClientBuilder, setCacheSpec, setConnectionCloseAfterResponseEnabled, setConnectionOptions, setConnectionTimeout, setContentCharSet, setContentCompressionEnabled, setCookiesEnabled, setFollowRedirects, setHttpProxySpec, setMaxConcurrentRequests, setMaxRedirects, setSocketBufferSize, setSocketOptions, setSocketTimeout, setSourceAddresspublic TokenSDK(@Nonnull@NotEmpty
String serviceUrl)
serviceUrl - the service url.@Nonnull protected AuthConfigurationProvider getAuthConfigProvider()
AuthConfigurationProvider. The default implementation lazy-loads and
returns a property file-based provider, which searches the classpath for the expected configuration file. This
method may be overridden to allow custom providers.AuthConfigurationProvider.protected TokenClientImpl buildResourceClient(TokenClientBuilder builder)
buildResourceClient in class TokenClientFactorypublic TokenClientImpl create()
create in class com.covisint.core.http.service.client.BaseResourceClientFactory<TokenClientBuilder,TokenClientImpl>@Nonnull public TokenSDK.TokenClient newClient()
public TokenSDK setAuthConfigProvider(@Nonnull AuthConfigurationProvider provider)
provider - The auth configuration provider to set.Copyright © 2015 Covisint. All rights reserved.