public AzureKeyVaultAccountStore(
     ILogger <AzureKeyVaultAccountStore> logger,
     IOptions <AzureKeyVaultLettuceEncryptOptions> options,
     ISecretClientFactory secretClientFactory,
     ICertificateAuthorityConfiguration certificateAuthority)
 {
     _logger               = logger;
     _options              = options;
     _secretClientFactory  = secretClientFactory;
     _certificateAuthority = certificateAuthority;
 }
Exemplo n.º 2
0
 public AzureKeyVaultCertificateRepository(
     ICertificateClientFactory certificateClientFactory,
     ISecretClientFactory secretClientFactory,
     IOptions <LettuceEncryptOptions> encryptOptions,
     ILogger <AzureKeyVaultCertificateRepository> logger)
 {
     _certificateClientFactory = certificateClientFactory ??
                                 throw new ArgumentNullException(nameof(_certificateClientFactory));
     _secretClientFactory = secretClientFactory ?? throw new ArgumentNullException(nameof(secretClientFactory));
     _encryptOptions      = encryptOptions ?? throw new ArgumentNullException(nameof(encryptOptions));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }