public class Credential extends Object
We mainly use two of them:
Permanent credential: SecretId & SecretKey, can only be obtained from Tencent Cloud Management Console, https://console.cloud.tencent.com/cam/capi.
Ephemeral credential, can be obtained from Security Token Service (STS), has three dimensions: SecretId, SecretKey and Token. It will expire after a short time, hence you need to invoke STS API to refresh it.
Constructor and Description |
---|
Credential(String secretId,
String secretKey) |
Credential(String secretId,
String secretKey,
String token) |
Modifier and Type | Method and Description |
---|---|
String |
getSecretId() |
String |
getSecretKey() |
String |
getToken() |
void |
setSecretId(String secretId) |
void |
setSecretKey(String secretKey) |
void |
setToken(String token) |
Copyright © 2020. All rights reserved.