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
QCloudCredentialProvider
getCredentials
在接口中 QCloudCredentialProvider
QCloudClientException
public void refresh() throws QCloudClientException
QCloudCredentialProvider
refresh
在接口中 QCloudCredentialProvider
QCloudClientException
public void forceInvalidationCredential()
protected abstract QCloudLifecycleCredentials fetchNewCredentials() throws QCloudClientException
QCloudClientException
- 如果请求超时或者失败,会抛出异常