public abstract class BasicLifecycleCredentialProvider extends java.lang.Object implements QCloudCredentialProvider
QCloudLifecycleCredentials,SDK 示例:
| 构造器和说明 |
|---|
BasicLifecycleCredentialProvider() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract QCloudLifecycleCredentials |
fetchNewCredentials()
请求一个新的临时密钥
|
void |
forceInvalidationCredential()
强制让凭证失效
|
QCloudCredentials |
getCredentials()
Returns QCloudCredentials which the caller can use to authorize an QCloud
request.
|
void |
refresh()
Forces this credentials provider to refresh its credentials.
|
public QCloudCredentials getCredentials() throws QCloudClientException
QCloudCredentialProvidergetCredentials 在接口中 QCloudCredentialProviderQCloudClientExceptionpublic void refresh()
throws QCloudClientException
QCloudCredentialProviderrefresh 在接口中 QCloudCredentialProviderQCloudClientExceptionpublic void forceInvalidationCredential()
protected abstract QCloudLifecycleCredentials fetchNewCredentials() throws QCloudClientException
QCloudClientException - 如果请求超时或者失败,会抛出异常