public class DefaultTokenProvider extends Object implements TokenProvider
| Modifier and Type | Field and Description |
|---|---|
protected static InternalLogApi |
log |
| Constructor and Description |
|---|
DefaultTokenProvider(String apiKey)
Default implmentation will use the apiKey to retrieve the Token from the
IAM Service
|
| Modifier and Type | Method and Description |
|---|---|
Token |
retrieveToken()
Retrieve the token using the Apache httpclient in a synchronous manner
|
void |
setIamEndpoint(String iamEndpoint)
Over write the default IAM endpoint.
|
protected static final InternalLogApi log
public DefaultTokenProvider(String apiKey)
apiKey - The IBM apiKeypublic void setIamEndpoint(String iamEndpoint)
iamEndpoint - The http endpoint to retrieve the tokenpublic Token retrieveToken()
retrieveToken in interface TokenProviderToken
The IAM TokenCopyright © 2018. All rights reserved.