public class BasicIBMOAuthCredentials extends Object implements IBMOAuthCredentials
Constructor and Description |
---|
BasicIBMOAuthCredentials(String apiKey,
String serviceInstanceId)
Constructs a new BasicIBMOAuthCredentials object, with the specified IBM
api key and service instance id.
|
BasicIBMOAuthCredentials(TokenManager tokenManager)
Constructor using a custom TokenManager
|
BasicIBMOAuthCredentials(TokenManager tokenManager,
String serviceInstanceId)
Constructor using a custom TokenManager
|
BasicIBMOAuthCredentials(TokenProvider tokenProvider)
Constructor using a custom Token Provider, this implementation will
use the DefaultTokenManager as the Token Manager.
|
Modifier and Type | Method and Description |
---|---|
String |
getApiKey()
Returns the IBM API Key for this credentials object.
|
String |
getAWSAccessKeyId()
Returns the AWS access key ID for this credentials object.
|
String |
getAWSSecretKey()
Returns the AWS secret access key for this credentials object.
|
String |
getServiceInstanceId()
Returns the IBM Service Instance Id for this credentials object.
|
TokenManager |
getTokenManager()
Returns the IAM TokenManager.
|
public BasicIBMOAuthCredentials(String apiKey, String serviceInstanceId)
apiKey
- The API key.serviceInstanceId
- The service instance id.public BasicIBMOAuthCredentials(TokenManager tokenManager)
tokenManager
- An instance of Token Managerpublic BasicIBMOAuthCredentials(TokenManager tokenManager, String serviceInstanceId)
tokenManager
- An instance of Token ManagerserviceInstanceId
- serviceInstanceId used for create & list buckets requestspublic BasicIBMOAuthCredentials(TokenProvider tokenProvider)
tokenProvider
- An instance of TokenProviderpublic String getAWSAccessKeyId()
AWSCredentials
getAWSAccessKeyId
in interface AWSCredentials
public String getAWSSecretKey()
AWSCredentials
getAWSSecretKey
in interface AWSCredentials
public TokenManager getTokenManager()
IBMOAuthCredentials
getTokenManager
in interface IBMOAuthCredentials
public String getApiKey()
IBMOAuthCredentials
getApiKey
in interface IBMOAuthCredentials
public String getServiceInstanceId()
IBMOAuthCredentials
getServiceInstanceId
in interface IBMOAuthCredentials
Copyright © 2024. All rights reserved.