public KeyNameProviderBindingProvider(IKeyNameProvider keyNameProvider)
 => _keyNameProvider = keyNameProvider;
 public KeyVaultBlobClient(CloudBlobClient blobClient, IKeyVaultClient keyVaultClient, IKeyNameProvider keyNameProvider)
 {
     _blobClient      = blobClient;
     _keyVaultClient  = keyVaultClient;
     _keyNameProvider = keyNameProvider;
 }
Esempio n. 3
0
 public KeyNameProviderBinding(ParameterInfo parameterInfo, IKeyNameProvider keyNameProvider)
 {
     _parameterInfo   = parameterInfo;
     _keyNameProvider = keyNameProvider;
 }
 public ICloudBlobAsyncConverter(IKeyVaultClient keyVaultClient, IKeyNameProvider keyNameProvider)
 {
     _keyVaultClient  = keyVaultClient;
     _keyNameProvider = keyNameProvider;
 }
Esempio n. 5
0
 public SimpleValueProvider(IKeyNameProvider keyNameProvider)
 => _keyNameProvider = keyNameProvider;
Esempio n. 6
0
        public EncryptedBlobAsyncCollector(EncryptedBlobAttribute config, IKeyVaultClient keyVaultClient, IKeyNameProvider keyNameProvider)
        {
            _config = config;
            var cloudBlobClient = CloudStorageAccount.Parse(config.BlobConnectionString).CreateCloudBlobClient();

            if (string.IsNullOrWhiteSpace(keyNameProvider.DefaultKey) && config.KeyName is string kn && !string.IsNullOrWhiteSpace(kn))
            {
                keyNameProvider.DefaultKey = kn;
            }
            _keyVaultBlobClient = new KeyVaultBlobClient(cloudBlobClient, keyVaultClient, keyNameProvider);
        }
 public KeyVaultBlobsExtensionConfigProvider(ILoggerFactory loggerFactory, IKeyVaultClient keyVaultClient, IKeyNameProvider keyNameProvider)
 {
     _logger          = loggerFactory.CreateLogger("KeyVault");
     _keyVaultClient  = keyVaultClient;
     _keyNameProvider = keyNameProvider;
 }