Class SecretConfigurationCertificateProvider
- 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 SecretConfigurationCertificateProvider : ConfigurationProvider, IConfigurationProvider
- Inheritance
-
SecretConfigurationCertificateProvider
- Implements
- Inherited Members
Constructors
SecretConfigurationCertificateProvider(SecretCertificateOptions, IList<IConfigurationSource>)
Create a IConfigurationProvider with a source based on the previous list of providers in the IConfigurationRoot.
public SecretConfigurationCertificateProvider(SecretCertificateOptions options, IList<IConfigurationSource> sources)
Parameters
optionsSecretCertificateOptionssourcesIList<IConfigurationSource>
Methods
Load()
The Load method does the different steps.
- Check if a configuration section exists defining certificate to use.
- Fetch the certificate in the store of the machine.
- Parse the dictionary of item from the providers, and if one value starts with the prefix 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 error is visible on any logging system or console.
public override void Load()