Table of Contents

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

builder IConfigurationBuilder

The IConfigurationBuilder to add configuration to.

Returns

IConfigurationBuilder

The incoming builder so 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

builder IConfigurationBuilder

The IConfigurationBuilder to add configuration to.

loggerFactory ILoggerFactory

Used for internal logging. Pass Instance to disable logging.

Returns

IConfigurationBuilder

The incoming builder so 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

builder IConfigurationBuilder

The IConfigurationBuilder to add configuration to.

textDecryptor ITextDecryptor

The decryptor to use, or null to load settings from configuration.

loggerFactory ILoggerFactory

Used for internal logging. Pass Instance to disable logging.

Returns

IConfigurationBuilder

The incoming builder so that additional calls can be chained.