public RsaPkcs1DigitalSignatureService(IHashingService hashingService)
        {
            if (hashingService == null)
            {
                throw new ArgumentNullException("Hashing service");
            }

            _hashingService = hashingService;
        }
 public ApiOwinAuthConfig(
     ILoginSessionRepository loginSessionRepository,
     IAuthKeyRepository authKeyRepository,
     IUserRepository userRepository,
     IHashingService hashingService)
 {
     _loginSessionRepository = loginSessionRepository;
     _authKeyRepository = authKeyRepository;
     _userRepository = userRepository;
     _hashingService = hashingService;
 }
        public ApiAuthorizationProvider(
            ILoginSessionRepository loginSessionRepository,
            IAuthKeyRepository authKeyRepository,
            IUserRepository userRepository,
            IHashingService hashingService,
            string publicClientId)
        {
            if (publicClientId == null)
                throw new ArgumentNullException("publicClientId");

            _loginSessionRepository = loginSessionRepository;
            _authKeyRepository = authKeyRepository;
            _userRepository = userRepository;
            _hashingService = hashingService;

            _publicClientId = publicClientId;
        }
Exemplo n.º 4
0
 public void SetUp()
 {
     _hashingServiceFake = A.Fake<IHashingService>();
       _array = new HashingArray(_hashingServiceFake, 10);
 }
 public AuthenticationService(MovieRamaContext dbContext, IHashingService hashingService)
 {
     _dbContext      = dbContext;
     _hashingService = hashingService;
 }
 public GetEmployerAgreementPdfQueryHandler(IValidator <GetEmployerAgreementPdfRequest> validator, IPdfService pdfService, IHashingService hashingService, Lazy <EmployerAccountsDbContext> db)
 {
     _validator      = validator;
     _pdfService     = pdfService;
     _hashingService = hashingService;
     _db             = db;
 }
Exemplo n.º 7
0
 public GetEmployerAgreementQueryValidator(IMembershipRepository membershipRepository, IEmployerAgreementRepository employerAgreementRepository, IHashingService hashingService)
 {
     _membershipRepository        = membershipRepository;
     _employerAgreementRepository = employerAgreementRepository;
     _hashingService = hashingService;
 }
Exemplo n.º 8
0
 public SignEmployerAgreementCommandValidator(IEmployerAgreementRepository employerAgreementRepository, IHashingService hashingService)
 {
     _employerAgreementRepository = employerAgreementRepository;
     _hashingService = hashingService;
 }
 public static HashedId Create(int id, IHashingService hashing)
 => new HashedId(id, hashing.HashValue(id));
 public HashedIdModelBinder(IHashingService hasher)
 => this._hasher = hasher;
 public CommitmentMapper(IHashingService hashingService, IFeatureToggleService featureToggleService, IPublicHashingService publicHashingService)
 {
     _hashingService       = hashingService;
     _featureToggleService = featureToggleService;
     _publicHashingService = publicHashingService;
 }
Exemplo n.º 12
0
 public EmailNotificationService(ILog logger, IHashingService hashingService)
 {
     Logger         = logger;
     HashingService = hashingService;
 }
Exemplo n.º 13
0
 public UniqueMachineId(IHashingService service)
 {
     this._hashService = service;
     this.Id           = this.ReadKey();
 }
Exemplo n.º 14
0
 public GetAccountEmployerAgreementsQueryHandler(IAccountRepository accountRepository, IHashingService hashingService, IValidator <GetAccountEmployerAgreementsRequest> validator)
 {
     _accountRepository = accountRepository;
     _hashingService    = hashingService;
     _validator         = validator;
 }
 public GetLevyDeclarationQueryHandler(IDasLevyRepository repository, IValidator <GetLevyDeclarationRequest> validator, IHashingService hashingService)
 {
     _repository     = repository;
     _validator      = validator;
     _hashingService = hashingService;
 }
Exemplo n.º 16
0
 public AuthorizationContextProvider(HttpContextBase httpContext, IHashingService hashingService, IAuthenticationService authenticationService)
 {
     _httpContext           = httpContext;
     _hashingService        = hashingService;
     _authenticationService = authenticationService;
 }
 public HashedIdRouteConstraint(IHashingService hasher) => _hasher = hasher;
Exemplo n.º 18
0
 public TransferRequestMapper(IHashingService hashingService)
 {
     _hashingService = hashingService;
 }
        public RegisterUserHandler(IConfiguredDatabaseContextFactory databaseContextFactory, IEventStore eventStore, IKeyStore keyStore, IHashingService hashingService)
        {
            Guard.AgainstNull(databaseContextFactory, "databaseContextFactory");
            Guard.AgainstNull(eventStore, "eventStore");
            Guard.AgainstNull(keyStore, "keyStore");
            Guard.AgainstNull(hashingService, "hashingService");

            _databaseContextFactory = databaseContextFactory;
            _eventStore             = eventStore;
            _keyStore       = keyStore;
            _hashingService = hashingService;

            _log = Log.For(this);
        }
Exemplo n.º 20
0
 internal Respondent ToEntity(IHashingService hasher) => new Respondent
 {
     Name           = Name,
     Email          = Email,
     HashedPassword = hasher.HashString(Password)
 };
Exemplo n.º 21
0
 public LoginControllerService(ICustomerRepository customerRepository, IHashingService hashingService)
 {
     _customerRepository = customerRepository;
     _hashingService = hashingService;
 }
Exemplo n.º 22
0
 public ApprenticeshipIndexModel(IOuterApiClient client, IHashingService hashing)
 {
     _client  = client;
     _hashing = hashing;
 }
 public static HashedId Create(string hashed, IHashingService hashing)
 {
     return(TryCreate(hashed, hashing, out var hashedId)
         ? hashedId
         : throw new InvalidHashedIdException(hashed));
 }
Exemplo n.º 24
0
 /// <summary />
 public UserDataFactory(DatabaseContext databaseContext, IHashingService hashingService)
 {
     _databaseContext = databaseContext;
     _hashingService  = hashingService;
 }
 public GetAccountTransactionSummaryQueryHandler(IHashingService hashingService, ITransactionRepository transactionRepository)
 {
     _hashingService        = hashingService;
     _transactionRepository = transactionRepository;
 }
 public AuthorizationContextProvider(IHttpContextAccessor httpContextAccessor, IHashingService hashingService, IAuthenticationService authenticationService)
 {
     _httpContextAccessor   = httpContextAccessor;
     _hashingService        = hashingService;
     _authenticationService = authenticationService;
 }
 public GetEmployerEnglishFractionHandler(IValidator <GetEmployerEnglishFractionQuery> validator, IDasLevyService dasLevyService, IMediator mediator, IHashingService hashingService)
 {
     _validator      = validator;
     _dasLevyService = dasLevyService;
     _mediator       = mediator;
     _hashingService = hashingService;
 }
 public SystemPointOfContactService(ISystemAddressService addressService, ISystemPhoneNumberService phoneNumberService, ISystemEmailAddressService emailAddressService, IHashingService hashingService, ISystemUserManager systemUsersManager, IConfiguration configuration, IWebHostEnvironment webHostEnvironment) : base(configuration, webHostEnvironment)
 {
     _addressService      = addressService;
     _phoheNumberService  = phoneNumberService;
     _emailAddressService = emailAddressService;
     _hashingService      = hashingService;
     _systemUsersManager  = systemUsersManager;
     _configuration       = configuration;
     _webHostEnvironment  = webHostEnvironment;
 }
Exemplo n.º 29
0
        public BlockService(ILogger <BlockService> logger, IHashCalculator hashCalculator, IHashingService hashingService, RepositoryManager repositoryManager, StoreConfiguration sConfig)
        {
            _logger            = logger;
            _chainGraphIri     = sConfig.ChainGraphIri;
            _hashCalculator    = hashCalculator;
            _hashingService    = hashingService;
            _repositoryManager = repositoryManager;

            _rdf4jSerializationHandler = new DotNetRdfSerializationHandler();
            _rdf4jMapper = new DotNetRdfMapper();
        }
Exemplo n.º 30
0
 public LegalEntitiesService(HttpClient client, IHashingService hashingService)
 {
     _client         = client;
     _hashingService = hashingService;
 }
 public static IEnumerable <LegalEntityModel> ToLegalEntityModel(this IEnumerable <LegalEntityDto> dtos, IHashingService hashingService)
 {
     return(dtos.Select(x => x.ToLegalEntityModel(hashingService)));
 }
 public static IEnumerable <ApprenticeshipModel> ToApprenticeshipModel(this IEnumerable <ApprenticeDto> dtos, IHashingService hashingService)
 {
     return(dtos.Select(x => new ApprenticeshipModel
     {
         Id = hashingService.HashValue(x.ApprenticeshipId),
         LastName = x.LastName,
         FirstName = x.FirstName,
         CourseName = x.CourseName,
         StartDate = x.StartDate,
         Uln = x.Uln
     }));
 }
Exemplo n.º 33
0
 public UsersController(IUserService userService, IHashingService hashingService)
 {
     _userService    = userService;
     _hashingService = hashingService;
 }
Exemplo n.º 34
0
 public UserService(IHashingService hashingService)
 {
     this.hashingService = hashingService;
 }
 public RabinKarpPatternSearcher(IHashingService hashingService)
 {
     _hashingService = hashingService;
 }
 public MarkerInterfaceWrapper(IHashingService hashingServiceWithCorrectValuesForMarkerInterface)
 {
     _hashingServiceWithCorrectValuesForMarkerInterface = hashingServiceWithCorrectValuesForMarkerInterface;
 }