Class ProfileCredentialsUtils

java.lang.Object
software.amazon.awssdk.auth.credentials.internal.ProfileCredentialsUtils

public final class ProfileCredentialsUtils extends Object
Utility class to load credentialsProvider() configured in a profile.
  • Constructor Details

  • Method Details

    • credentialsProvider

      public Optional<AwsCredentialsProvider> 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 returned AwsCredentialsProvider implements SdkAutoCloseable and should be cleaned up to prevent resource leaks in the event that multiple credentials providers will be created.