Interface ChildProfileCredentialsProviderFactory
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@SdkProtectedApi @FunctionalInterface public interface ChildProfileCredentialsProviderFactory
A factory forAwsCredentialsProviders that are derived from another set of credentials in a profile file. Currently this is used to allow aProfileconfigured 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classChildProfileCredentialsProviderFactory.ChildProfileCredentialsRequest
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AwsCredentialsProvidercreate(AwsCredentialsProvider sourceCredentialsProvider, Profile profile)Create a credentials provider for the provided profile, using the provided source credentials provider to authenticate with AWS.default AwsCredentialsProvidercreate(ChildProfileCredentialsProviderFactory.ChildProfileCredentialsRequest request)Create a credentials provider for the provided profile, using the provided source credentials provider to authenticate with AWS.
-
-
-
Method Detail
-
create
AwsCredentialsProvider create(AwsCredentialsProvider sourceCredentialsProvider, Profile profile)
Create a credentials provider for the provided profile, using the provided source credentials provider to authenticate with AWS. In the case of STS, the returned credentials provider is for a role that has been assumed, and the provided source credentials provider is the credentials that should be used to authenticate that the user is allowed to assume that role.- Parameters:
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.- Returns:
- The credentials provider with permissions derived from the source credentials provider and profile.
-
create
default AwsCredentialsProvider create(ChildProfileCredentialsProviderFactory.ChildProfileCredentialsRequest request)
Create a credentials provider for the provided profile, using the provided source credentials provider to authenticate with AWS. In the case of STS, the returned credentials provider is for a role that has been assumed, and the provided source credentials provider is the credentials that should be used to authenticate that the user is allowed to assume that role.- Parameters:
request- The request containing all parameters needed to create the child credentials provider.- Returns:
- The credentials provider with permissions derived from the request parameters.
-
-