public class StsProfileCredentialsProviderFactory extends Object implements ChildProfileCredentialsProviderFactory
ChildProfileCredentialsProviderFactory
that uses configuration in a profile to create a
StsAssumeRoleCredentialsProvider
.Constructor and Description |
---|
StsProfileCredentialsProviderFactory() |
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.
|
public StsProfileCredentialsProviderFactory()
public AwsCredentialsProvider create(AwsCredentialsProvider sourceCredentialsProvider, Profile profile)
ChildProfileCredentialsProviderFactory
create
in interface ChildProfileCredentialsProviderFactory
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 © 2017 Amazon Web Services, Inc. All Rights Reserved.