程序包 | 说明 |
---|---|
com.tencent.qcloud.core.auth |
限定符和类型 | 类和说明 |
---|---|
class |
SessionCredentialProvider
|
class |
ShortTimeCredentialProvider
本地临时证书提供器
非常不推荐直接使用这种方式,因为会在客户端暴露您的secretId, secretKey,导致秘钥泄露, 推荐使用服务端下发临时秘钥的方式实现 SessionCredentialProvider
SDK 示例:方式三:通过永久密钥进行授权(不推荐) |