Class ProfileCredentialsUtils

    • Method Detail

      • 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.