public class COSCredentialsProviderList extends Object implements com.qcloud.cos.auth.COSCredentialsProvider, AutoCloseable
| Constructor and Description |
|---|
COSCredentialsProviderList() |
COSCredentialsProviderList(Collection<com.qcloud.cos.auth.COSCredentialsProvider> providers) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(com.qcloud.cos.auth.COSCredentialsProvider provider) |
void |
checkNotEmpty() |
void |
close() |
boolean |
closed() |
com.qcloud.cos.auth.COSCredentials |
getCredentials() |
int |
getRefCount() |
void |
refresh() |
COSCredentialsProviderList |
share() |
public COSCredentialsProviderList()
public COSCredentialsProviderList(Collection<com.qcloud.cos.auth.COSCredentialsProvider> providers)
public void add(com.qcloud.cos.auth.COSCredentialsProvider provider)
public int getRefCount()
public void checkNotEmpty()
public COSCredentialsProviderList share()
public boolean closed()
public com.qcloud.cos.auth.COSCredentials getCredentials()
getCredentials in interface com.qcloud.cos.auth.COSCredentialsProviderpublic void refresh()
refresh in interface com.qcloud.cos.auth.COSCredentialsProviderpublic void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2008–2023 Apache Software Foundation. All rights reserved.