public interface ScopeLimitCredentialProvider extends QCloudCredentialProvider
限定符和类型 | 方法和说明 |
---|---|
SessionQCloudCredentials |
getCredentials(STSCredentialScope[] credentialScope)
可以根据权限范围,返回一个合适的临时密钥。
|
getCredentials, refresh
SessionQCloudCredentials getCredentials(STSCredentialScope[] credentialScope) throws QCloudClientException
credentialScope
- 权限范围QCloudClientException
- 如果请求超时或者失败,会抛出异常