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()
AWSCredentialsgetAWSAccessKeyId in interface AWSCredentialspublic String getAWSSecretKey()
AWSCredentialsgetAWSSecretKey in interface AWSCredentialspublic TokenManager getTokenManager()
IBMOAuthCredentialsgetTokenManager in interface IBMOAuthCredentialspublic String getApiKey()
IBMOAuthCredentialsgetApiKey in interface IBMOAuthCredentialspublic String getServiceInstanceId()
IBMOAuthCredentialsgetServiceInstanceId in interface IBMOAuthCredentialsCopyright © 2025. All rights reserved.