public class InstanceCredentialsProvider extends Object implements COSCredentialsProvider
| Constructor and Description |
|---|
InstanceCredentialsProvider(InstanceCredentialsFetcher fetcher) |
| Modifier and Type | Method and Description |
|---|---|
COSCredentials |
getCredentials()
Returns COSCredentials which the caller can use to authorize an COS request.
|
void |
refresh() |
boolean |
shouldRefresh() |
InstanceCredentialsProvider |
withFetchRetryTimes(int fetchRetryTimes) |
InstanceCredentialsProvider |
withRefreshInterval(long refreshIntervalInMilliseconds) |
public InstanceCredentialsProvider(InstanceCredentialsFetcher fetcher)
public InstanceCredentialsProvider withRefreshInterval(long refreshIntervalInMilliseconds)
public InstanceCredentialsProvider withFetchRetryTimes(int fetchRetryTimes)
public COSCredentials getCredentials()
COSCredentialsProvidergetCredentials in interface COSCredentialsProviderpublic void refresh()
refresh in interface COSCredentialsProviderpublic boolean shouldRefresh()
Copyright © 2023. All rights reserved.