Package com.tencentcloudapi.common
Class Credential
- java.lang.Object
-
- com.tencentcloudapi.common.Credential
-
- Direct Known Subclasses:
CvmRoleCredential
,STSCredential
public class Credential extends Object
Credential has many types in Tencent Cloud Access Management service.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 Summary
Constructors Constructor Description Credential()
Credential(String secretId, String secretKey)
Credential(String secretId, String secretKey, String token)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSecretId()
String
getSecretKey()
String
getToken()
void
setSecretId(String secretId)
void
setSecretKey(String secretKey)
void
setToken(String token)
-