public class AwsDefaultProviderChainPlugin extends Object implements AwsCredentialProviderPlugin
| Constructor and Description |
|---|
AwsDefaultProviderChainPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
com.amazonaws.auth.AWSCredentialsProvider |
getCredentialProvider()
Returned
AWSCredentialsProvider can give AWSCredentials in case credential belongs to IAM user or
it can return BasicSessionCredentials if user wants to generate temporary credential for a given IAM
role. |
software.amazon.awssdk.auth.credentials.AwsCredentialsProvider |
getV2CredentialsProvider()
Returns a V2 credential provider for use with the v2 SDK.
|
void |
init(String param)
accepts aws-account related param and initialize credential provider.
|
public void init(String param)
AwsCredentialProviderPlugininit in interface AwsCredentialProviderPluginpublic com.amazonaws.auth.AWSCredentialsProvider getCredentialProvider()
AwsCredentialProviderPluginAWSCredentialsProvider can give AWSCredentials in case credential belongs to IAM user or
it can return BasicSessionCredentials if user wants to generate temporary credential for a given IAM
role.getCredentialProvider in interface AwsCredentialProviderPluginpublic software.amazon.awssdk.auth.credentials.AwsCredentialsProvider getV2CredentialsProvider()
AwsCredentialProviderPlugingetV2CredentialsProvider in interface AwsCredentialProviderPluginpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2017–2021 Apache Software Foundation. All rights reserved.