Class 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 Detail

      • Credential

        public Credential()
      • Credential

        public Credential​(String secretId,
                          String secretKey)
    • Method Detail

      • getSecretId

        public String getSecretId()
      • setSecretId

        public void setSecretId​(String secretId)
      • getSecretKey

        public String getSecretKey()
      • setSecretKey

        public void setSecretKey​(String secretKey)
      • getToken

        public String getToken()
      • setToken

        public void setToken​(String token)