public class AWSCredentialsProviderChain extends java.lang.Object implements AWSCredentialsProvider
AWSCredentialsProvider implementation that chains together multiple
credentials providers. When a caller requests credentials from this provider,
it calls all the providers in the chain, in the original order specified,
until one can provide credentials, and then returns those credentials. If all
of the credential providers in the chain have been called, and none of them
can provide credentials, then this class will throw an exception indicated
that no credentials are available.| コンストラクタと説明 |
|---|
AWSCredentialsProviderChain(AWSCredentialsProvider... credentialsProviders)
Constructs a new AWSCredentialsProviderChain with the specified
credential providers.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
AWSCredentials |
getCredentials()
Returns AWSCredentials which the caller can use to authorize an AWS request.
|
void |
refresh()
Forces this credentials provider to refresh its credentials.
|
public AWSCredentialsProviderChain(AWSCredentialsProvider... credentialsProviders)
credentialsProviders - The chain of credentials providers.public AWSCredentials getCredentials()
AWSCredentialsProvidergetCredentials インタフェース内 AWSCredentialsProviderpublic void refresh()
AWSCredentialsProviderrefresh インタフェース内 AWSCredentialsProvider