Class SystemSettingsCredentialsProvider

    • Constructor Detail

      • SystemSettingsCredentialsProvider

        public SystemSettingsCredentialsProvider()
    • Method Detail

      • resolveCredentials

        public AwsCredentials resolveCredentials()
        Description copied from interface: AwsCredentialsProvider
        Returns AwsCredentials that can be used to authorize an AWS request. Each implementation of AWSCredentialsProvider can choose its own strategy for loading credentials. For example, an implementation might load credentials from an existing key management system, or load new credentials when credentials are rotated.

        If an error occurs during the loading of credentials or credentials could not be found, a runtime exception will be raised.

        Specified by:
        resolveCredentials in interface AwsCredentialsProvider
        Returns:
        AwsCredentials which the caller can use to authorize an AWS request.
      • loadSetting

        protected abstract Optional<String> loadSetting​(SystemSetting setting)
        Implemented by child classes to load the requested setting.