public class DefaultBceCredentials extends Object implements BceCredentials
| Constructor and Description |
|---|
DefaultBceCredentials(String accessKeyId,
String secretKey)
Constructs a new Credentials object, with the specified access key id and secret key.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessKeyId()
Returns the BCE access key ID for this credentials object.
|
String |
getSecretKey()
Returns the BCE secret access key for this credentials object.
|
public DefaultBceCredentials(String accessKeyId, String secretKey)
accessKeyId - the BCE access key id.secretKey - the BCE secret access key.IllegalArgumentException - The accessKeyId, secretKey should not be null or empty.public String getAccessKeyId()
BceCredentialsgetAccessKeyId in interface BceCredentialsBceCredentials.getAccessKeyId()public String getSecretKey()
BceCredentialsgetSecretKey in interface BceCredentialsBceCredentials.getSecretKey()Copyright © 2023. All rights reserved.