tencent.cloud.auth.credentials
中类 EnvironmentalCredentials
代表,该类的签名如下:tencent.cloud.auth.credentials.Credentials
类TENCENTCLOUD_SECRETID
和 TENCENTCLOUD_SECRETKEY
的环境变量值,对应访问凭据的 Secret ID 和 Secret Key 字段。MY_SECRETID
和 MY_SECRETKEY
的环境变量值。tencent.cloud.auth.credentials
中类 FileCredentials
代表,该类的签名如下:tencent.cloud.auth.credentials.Credentials
类secret.json
的 JSON 序列化文本文件,其文件内容形态如下:secretId
和 secretKey
分别对应访问凭据的 Secret ID 和 Secret Key 字段。secret.json
的 JSON 序列化文本文件: