public class StaticCredentialProvider extends java.lang.Object implements QCloudCredentialProvider
QCloudCredentials
并对外输出构造器和说明 |
---|
StaticCredentialProvider() |
StaticCredentialProvider(QCloudCredentials credentials) |
限定符和类型 | 方法和说明 |
---|---|
QCloudCredentials |
getCredentials()
Returns QCloudCredentials which the caller can use to authorize an QCloud
request.
|
void |
refresh()
Forces this credentials provider to refresh its credentials.
|
void |
update(QCloudCredentials credentials)
更新访问证书,请在每次调用 API 前都更新,以免发生请求无授权的错误。
|
public StaticCredentialProvider()
public StaticCredentialProvider(QCloudCredentials credentials)
public void update(QCloudCredentials credentials)
credentials
- 腾讯云访问证书public QCloudCredentials getCredentials()
QCloudCredentialProvider
getCredentials
在接口中 QCloudCredentialProvider
public void refresh()
QCloudCredentialProvider
refresh
在接口中 QCloudCredentialProvider