Table of Contents

Class SecretRijndaelConfigurationProvider

Namespace
Arc4u.Configuration.Decryptor
Assembly
Arc4u.Configuration.Decryptor.dll

Loads configuration key/values from the providers define before this one. Decrypt the value with this one if value starts with the prefix.

public class SecretRijndaelConfigurationProvider : ConfigurationProvider, IConfigurationProvider
Inheritance
SecretRijndaelConfigurationProvider
Implements
Inherited Members

Constructors

SecretRijndaelConfigurationProvider(SecretRijndaelOptions, IList<IConfigurationSource>)

Create a IConfigurationProvider with a source based on the previous list of providers in the IConfigurationRoot.

public SecretRijndaelConfigurationProvider(SecretRijndaelOptions options, IList<IConfigurationSource> sources)

Parameters

options SecretRijndaelOptions
sources IList<IConfigurationSource>

Methods

Load()

The Load method does the different steps.

  • Check if a configuration section exists defining the key to use.
  • Fetch the key in the configuration providers.
  • Parse the dictionary of item from the providers, and if one value starts with the profix keyword, decrypt it.
  • Add the decrypted data to the Data dictionary. So the final Configuration will contains the decrypted value.
  • No exception are catched by purpose. So the eror is visible on any logging system or console.
public override void Load()