public SessionFactory( string productId, string serviceId, IMetastore <JObject> metastore, SecureCryptoKeyDictionaryFactory <DateTimeOffset> secureCryptoKeyDictionaryFactory, CryptoPolicy cryptoPolicy, KeyManagementService keyManagementService) { this.productId = productId; this.serviceId = serviceId; this.metastore = metastore; this.secureCryptoKeyDictionaryFactory = secureCryptoKeyDictionaryFactory; systemKeyCache = secureCryptoKeyDictionaryFactory.CreateSecureCryptoKeyDictionary(); this.cryptoPolicy = cryptoPolicy; this.keyManagementService = keyManagementService; }
public EnvelopeEncryptionJsonImpl( AppEncryptionPartition partition, IMetastorePersistence <JObject> metastorePersistence, SecureCryptoKeyDictionary <DateTimeOffset> systemKeyCache, SecureCryptoKeyDictionaryFactory <DateTimeOffset> intermediateKeyCacheFactory, AeadEnvelopeCrypto aeadEnvelopeCrypto, CryptoPolicy cryptoPolicy, KeyManagementService keyManagementService) { this.partition = partition; this.metastorePersistence = metastorePersistence; this.systemKeyCache = systemKeyCache; intermediateKeyCache = intermediateKeyCacheFactory.CreateSecureCryptoKeyDictionary(); crypto = aeadEnvelopeCrypto; this.cryptoPolicy = cryptoPolicy; this.keyManagementService = keyManagementService; }