public SignHashCommandHandler(IDigitalSignatureService digitalSignatureService, IEgidDbContext context, ICurrentUserService currentUser, ICardManagerService cardManager, ISymmetricCryptographyService cryptoService) { _digitalSignatureService = digitalSignatureService; _context = context; _currentUser = currentUser; _cardManager = cardManager; _cryptoService = cryptoService; }
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>(); }
public RemoteTemplatesSource(string platform, string language, string installedPackagePath, IDigitalSignatureService digitalSignatureService) { Platform = platform; Language = ProgrammingLanguages.GetShortProgrammingLanguage(language); InstalledPackagePath = installedPackagePath; _templatePackage = new TemplatePackage(digitalSignatureService); CanGetNewContent = digitalSignatureService.CanVerifySignatures; }
public TemplatePackage(IDigitalSignatureService digitalSignatureService) { _digitalSignatureService = digitalSignatureService; }