Class ProfileCredentialsUtils
java.lang.Object
software.amazon.awssdk.auth.credentials.internal.ProfileCredentialsUtils
Utility class to load
credentialsProvider()
configured in a profile.-
Constructor Summary
ConstructorsConstructorDescriptionProfileCredentialsUtils
(ProfileFile profileFile, Profile profile, Function<String, Optional<Profile>> credentialsSourceResolver) -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the credentials provider for which this profile has been configured, if available.
-
Constructor Details
-
ProfileCredentialsUtils
-
-
Method Details
-
credentialsProvider
Retrieve the credentials provider for which this profile has been configured, if available. If this profile is configured for role-based credential loading, the returnedAwsCredentialsProvider
implementsSdkAutoCloseable
and should be cleaned up to prevent resource leaks in the event that multiple credentials providers will be created.
-