예제 #1
0
 public ProductsService(IObjectSerializationProvider serializationProvider, IControlService controlService,
                        IProductManagementService productManagementService, IKeyManagementService keyManagementService)
 {
     _serializationProvider    = serializationProvider;
     _controlService           = controlService;
     _productManagementService = productManagementService;
     _keyManagementService     = keyManagementService;
 }
예제 #2
0
		public ProductsService(IObjectSerializationProvider serializationProvider, IControlService controlService,
			IProductManagementService productManagementService, IKeyManagementService keyManagementService)
		{
			_serializationProvider = serializationProvider;
			_controlService = controlService;
			_productManagementService = productManagementService;
			_keyManagementService = keyManagementService;
		}
 public KeyManagementServiceCache(
     IKeyManagementService keyManagementService,
     IDataKeyCache dataKeyCache,
     IDecryptKeyCache decryptKeyCache)
 {
     _dataKeyCache         = dataKeyCache;
     _decryptKeyCache      = decryptKeyCache;
     _keyManagementService = keyManagementService;
 }
예제 #4
0
 public KmsSecureKeyProvider(
     IKeyManagementService keyManagementService,
     IEncryptionContextBuilder encryptionContextBuilder,
     string kmsKeyId)
 {
     _keyManagementService     = keyManagementService;
     _encryptionContextBuilder = encryptionContextBuilder;
     _kmsKeyId = kmsKeyId;
 }
예제 #5
0
		public ReportingService(IObjectSerializationProvider serializationProvider, IControlService controlService,
			IProductManagementService productManagementService, IMasterService masterService, IActivationLogService activationLogService, IKeyManagementService keyManagementService)
		{
			_serializationProvider = serializationProvider;
			_controlService = controlService;
			_productManagementService = productManagementService;
			_masterService = masterService;
			_activationLogService = activationLogService;
			_keyManagementService = keyManagementService;
		}
예제 #6
0
 public ReportingService(IObjectSerializationProvider serializationProvider, IControlService controlService,
                         IProductManagementService productManagementService, IMasterService masterService, IActivationLogService activationLogService, IKeyManagementService keyManagementService)
 {
     _serializationProvider    = serializationProvider;
     _controlService           = controlService;
     _productManagementService = productManagementService;
     _masterService            = masterService;
     _activationLogService     = activationLogService;
     _keyManagementService     = keyManagementService;
 }
 public KeyManagementServiceCache(
     IKeyManagementService keyManagementService,
     IDistributedCache distributedCache,
     ICacheKeyGenerator cacheKeyGenerator,
     ICacheValueConverter cacheValueConverter)
 {
     _distributedCache     = distributedCache;
     _cacheKeyGenerator    = cacheKeyGenerator;
     _cacheValueConverter  = cacheValueConverter;
     _keyManagementService = keyManagementService;
 }
        public static void UseAwsKeyManagementServiceSerializerWithCache(this IReceiveEndpointConfigurator configurator,
                                                                         IKeyManagementService amazonKeyManagementService,
                                                                         IEncryptionContextBuilder encryptionContextBuilder,
                                                                         string kmsKeyId, IDataKeyCache dataKeyCache, IDecryptKeyCache decryptKeyCache)
        {
            var keyManagementServiceCache =
                new KeyManagementServiceCache(amazonKeyManagementService, dataKeyCache, decryptKeyCache);

            configurator.UseAwsKeyManagementServiceSerializer(keyManagementServiceCache, encryptionContextBuilder,
                                                              kmsKeyId);
        }
예제 #9
0
        public ActivationService(IControlService controlService, IKeyManagementService keyService, IKeyPairService keyPairService,
			IObjectSerializationProvider serializationProvider, IAsymmetricEncryptionProvider asymmetricEncryptionProvider,
			IActivationLogService activationLogService, IMasterService masterService)
        {
            _controlService = controlService;
            _keyService = keyService;
            _keyPairService = keyPairService;
            _serializationProvider = serializationProvider;
            _asymmetricEncryptionProvider = asymmetricEncryptionProvider;
            _activationLogService = activationLogService;
            _masterService = masterService;
        }
예제 #10
0
 public ActivationService(IControlService controlService, IKeyManagementService keyService, IKeyPairService keyPairService,
                          IObjectSerializationProvider serializationProvider, IAsymmetricEncryptionProvider asymmetricEncryptionProvider,
                          IActivationLogService activationLogService, IMasterService masterService, ICommonService commonService, IProductManagementService productManagementService)
 {
     _controlService               = controlService;
     _keyService                   = keyService;
     _keyPairService               = keyPairService;
     _serializationProvider        = serializationProvider;
     _asymmetricEncryptionProvider = asymmetricEncryptionProvider;
     _activationLogService         = activationLogService;
     _masterService                = masterService;
     _commonService                = commonService;
     _productManagementService     = productManagementService;
 }
        public static void UseAwsKeyManagementServiceSerializerWithCache(this IReceiveEndpointConfigurator configurator,
                                                                         IKeyManagementService amazonKeyManagementService,
                                                                         IEncryptionContextBuilder encryptionContextBuilder,
                                                                         string kmsKeyId,
                                                                         IDistributedCache distributedCache,
                                                                         ICacheKeyGenerator cacheKeyGenerator,
                                                                         ICacheValueConverter cacheValueConverter)
        {
            var keyManagementServiceCache =
                new KeyManagementServiceCache(amazonKeyManagementService, distributedCache, cacheKeyGenerator,
                                              cacheValueConverter);

            configurator.UseAwsKeyManagementServiceSerializer(keyManagementServiceCache, encryptionContextBuilder,
                                                              kmsKeyId);
        }
예제 #12
0
        public static void UseAwsKeyManagementServiceSerializer(this IBusFactoryConfigurator configurator,
                                                                IKeyManagementService keyManagementService,
                                                                IEncryptionContextBuilder encryptionContextBuilder,
                                                                string kmsKeyId)
        {
            var kmsSecureKeyProvider =
                new KmsSecureKeyProvider(keyManagementService, encryptionContextBuilder, kmsKeyId);

            var aesCryptoStreamProvider = new AesCryptoStreamProviderV2(kmsSecureKeyProvider);

            configurator.SetMessageSerializer(() => new EncryptedMessageSerializerV2(aesCryptoStreamProvider));

            configurator.AddMessageDeserializer(EncryptedMessageSerializer.EncryptedContentType,
                                                () => new EncryptedMessageDeserializerV2(BsonMessageSerializer.Deserializer, aesCryptoStreamProvider));
        }
        public static void UseAwsKeyManagementServiceSerializerWithCache(this IReceiveEndpointConfigurator configurator,
                                                                         IKeyManagementService amazonKeyManagementService,
                                                                         IEncryptionContextBuilder encryptionContextBuilder,
                                                                         string kmsKeyId,
                                                                         IDistributedCache distributedCache,
                                                                         ICacheKeyGenerator cacheKeyGenerator,
                                                                         ICacheValueConverter cacheValueConverter,
                                                                         IDistributedCacheEntryOptionsFactory distributedCacheEntryOptionsFactory)
        {
            var dataKeyCache    = new DataKeyCache(cacheKeyGenerator, distributedCache, cacheValueConverter, distributedCacheEntryOptionsFactory);
            var decryptKeyCache = new DecryptKeyCache(cacheKeyGenerator, distributedCache, distributedCacheEntryOptionsFactory);

            configurator.UseAwsKeyManagementServiceSerializerWithCache(amazonKeyManagementService, encryptionContextBuilder,
                                                                       kmsKeyId, dataKeyCache, decryptKeyCache);
        }