@FunctionalInterface public interface ChildProfileCredentialsProviderFactory
AwsCredentialsProvider
s that are derived from another set of credentials in a profile file.
Currently this is used to allow a Profile
configured with a role that should be assumed to create a credentials
provider via the 'software.amazon.awssdk.services.sts.internal.StsProfileCredentialsProviderFactory', assuming STS is on the
classpath.Modifier and Type | Method and Description |
---|---|
AwsCredentialsProvider |
create(AwsCredentialsProvider sourceCredentialsProvider,
Profile profile)
Create a credentials provider for the provided profile, using the provided source credentials provider to authenticate
with AWS.
|
AwsCredentialsProvider create(AwsCredentialsProvider sourceCredentialsProvider, Profile profile)
sourceCredentialsProvider
- The credentials provider that should be used to authenticate the child credentials
provider. This credentials provider should be closed when it is no longer used.profile
- The profile that should be used to load the configuration necessary to create the child credentials
provider.Copyright © 2019. All rights reserved.