Class DecryptionConfigurationBuilderExtensions
- Namespace
- Steeltoe.Configuration.Encryption
- Assembly
- Steeltoe.Configuration.Encryption.dll
public static class DecryptionConfigurationBuilderExtensions
- Inheritance
-
DecryptionConfigurationBuilderExtensions
- Inherited Members
Methods
AddDecryption(IConfigurationBuilder)
Adds a configuration source to the ConfigurationBuilder that decrypts encrypted values.
This method replaces all the existing IConfigurationSources contained in the builder, taking ownership of them. The newly added source then provides decryption of values stored in its inner configuration (built from the pre-existing sources). Typically, you will want to add this configuration source as the last one, so that decryption is applied to all configuration values.
public static IConfigurationBuilder AddDecryption(this IConfigurationBuilder builder)
Parameters
builderIConfigurationBuilderThe IConfigurationBuilder to add configuration to.
Returns
- IConfigurationBuilder
The incoming
builderso that additional calls can be chained.
AddDecryption(IConfigurationBuilder, ILoggerFactory)
Adds a configuration source to the ConfigurationBuilder that decrypts encrypted values.
This method replaces all the existing IConfigurationSources contained in the builder, taking ownership of them. The newly added source then provides decryption of values stored in its inner configuration (built from the pre-existing sources). Typically, you will want to add this configuration source as the last one, so that decryption is applied to all configuration values.
public static IConfigurationBuilder AddDecryption(this IConfigurationBuilder builder, ILoggerFactory loggerFactory)
Parameters
builderIConfigurationBuilderThe IConfigurationBuilder to add configuration to.
loggerFactoryILoggerFactoryUsed for internal logging. Pass Instance to disable logging.
Returns
- IConfigurationBuilder
The incoming
builderso that additional calls can be chained.
AddDecryption(IConfigurationBuilder, ITextDecryptor?, ILoggerFactory)
Adds a configuration source to the ConfigurationBuilder that decrypts encrypted values.
This method replaces all the existing IConfigurationSources contained in the builder, taking ownership of them. The newly added source then provides decryption of values stored in its inner configuration (built from the pre-existing sources). Typically, you will want to add this configuration source as the last one, so that decryption is applied to all configuration values.
public static IConfigurationBuilder AddDecryption(this IConfigurationBuilder builder, ITextDecryptor? textDecryptor, ILoggerFactory loggerFactory)
Parameters
builderIConfigurationBuilderThe IConfigurationBuilder to add configuration to.
textDecryptorITextDecryptorThe decryptor to use, or
nullto load settings from configuration.loggerFactoryILoggerFactoryUsed for internal logging. Pass Instance to disable logging.
Returns
- IConfigurationBuilder
The incoming
builderso that additional calls can be chained.