Example #1
0
 public CreateCitizenCommandHandler(IEgidDbContext context, IFilesDirectoryService directories,
                                    ISymmetricCryptographyService cryptographyService, IKeysGeneratorService keys)
 {
     _context             = context;
     _directories         = directories;
     _cryptographyService = cryptographyService;
     _keys = keys;
 }
Example #2
0
 public SignHashCommandHandler(IDigitalSignatureService digitalSignatureService, IEgidDbContext context,
                               ICurrentUserService currentUser, ICardManagerService cardManager, ISymmetricCryptographyService cryptoService)
 {
     _digitalSignatureService = digitalSignatureService;
     _context       = context;
     _currentUser   = currentUser;
     _cardManager   = cardManager;
     _cryptoService = cryptoService;
 }
 public CryptographyController(ISymmetricCryptographyService cryptoservice,
                               IRSACryptographyService rsaCryptoService,
                               IObjectService objectService,
                               IServiceProvider provider,
                               ILogger <CryptographyController> logger) : base(provider)
 {
     this.cryptoservice    = cryptoservice;
     this.objectService    = objectService;
     this.rsaCryptoService = rsaCryptoService;
     this.logger           = logger;
 }
Example #4
0
        public SecurityTests()
        {
            var services = new ServiceCollection();

            services.AddSingleton <ISymmetricCryptographyService>(_ =>
                                                                  new SymmetricCryptographyService(Guid.NewGuid().ToString()));
            services.AddSingleton <IHashService>(_ => new HashService(10000, 128));
            services.AddSingleton <IDigitalSignatureService, DigitalSignatureService>();

            _symmetricCryptographyService = services.BuildServiceProvider().GetService <ISymmetricCryptographyService>();
            _hashService             = services.BuildServiceProvider().GetService <IHashService>();
            _digitalSignatureService = services.BuildServiceProvider().GetService <IDigitalSignatureService>();
        }
Example #5
0
 public InitializeDbHandler(
     ICardManagerService cardManager,
     IKeysGeneratorService citizenKeys,
     IEgidDbContext context,
     ISymmetricCryptographyService cryptographyService,
     IConfiguration config)
 {
     _citizenKeys         = citizenKeys;
     _context             = context;
     _cryptographyService = cryptographyService;
     _config      = config;
     _cardManager = cardManager;
 }
 public LicenseController(IObjectService objectService,
                          IRSACryptographyService cryptographysvc,
                          ISymmetricCryptographyService symmetricCryptoService,
                          IFileStorageService storageService,
                          IConfiguration configuration,
                          ILogger <LicenseController> logger,
                          IServiceProvider provider) : base(provider)
 {
     this.objectService          = objectService;
     this.cryptoGraphysvc        = cryptographysvc;
     this.symmetricCryptoService = symmetricCryptoService;
     this.logger         = logger;
     this.storageService = storageService;
     this.configuration  = configuration;
 }