public CompositeSignatureHeaderEnsurer(
     ISignatureHeaderEnsurer dateHeaderEnsurer,
     ISignatureHeaderEnsurer digestHeaderEnsurer)
 {
     _dateHeaderEnsurer   = dateHeaderEnsurer ?? throw new ArgumentNullException(nameof(dateHeaderEnsurer));
     _digestHeaderEnsurer = digestHeaderEnsurer ?? throw new ArgumentNullException(nameof(digestHeaderEnsurer));
 }
Exemplo n.º 2
0
 public RequestSignerFactory(
     ISigningSettingsSanitizer signingSettingsSanitizer,
     ISignatureCreator signatureCreator,
     IAuthorizationHeaderParamCreator authorizationHeaderParamCreator,
     ISignatureHeaderEnsurer signatureHeaderEnsurer,
     ISystemClock systemClock,
     IRegisteredSignerSettingsStore registeredSignerSettingsStore,
     ILogger <RequestSigner> logger = null)
 {
     _signingSettingsSanitizer        = signingSettingsSanitizer ?? throw new ArgumentNullException(nameof(signingSettingsSanitizer));
     _signatureCreator                = signatureCreator ?? throw new ArgumentNullException(nameof(signatureCreator));
     _authorizationHeaderParamCreator = authorizationHeaderParamCreator ?? throw new ArgumentNullException(nameof(authorizationHeaderParamCreator));
     _signatureHeaderEnsurer          = signatureHeaderEnsurer ?? throw new ArgumentNullException(nameof(signatureHeaderEnsurer));
     _logger = logger;
     _registeredSignerSettingsStore = registeredSignerSettingsStore ?? throw new ArgumentNullException(nameof(registeredSignerSettingsStore));
     _systemClock = systemClock ?? throw new ArgumentNullException(nameof(systemClock));
 }
Exemplo n.º 3
0
 public RequestSigner(
     ISigningSettingsSanitizer signingSettingsSanitizer,
     ISignatureCreator signatureCreator,
     IAuthorizationHeaderParamCreator authorizationHeaderParamCreator,
     SigningSettings signingSettings,
     ISignatureHeaderEnsurer signatureHeaderEnsurer,
     ISystemClock systemClock,
     ILogger <RequestSigner> logger = null)
 {
     _signingSettingsSanitizer        = signingSettingsSanitizer ?? throw new ArgumentNullException(nameof(signingSettingsSanitizer));
     _signatureCreator                = signatureCreator ?? throw new ArgumentNullException(nameof(signatureCreator));
     _authorizationHeaderParamCreator = authorizationHeaderParamCreator ?? throw new ArgumentNullException(nameof(authorizationHeaderParamCreator));
     _signingSettings        = signingSettings ?? throw new ArgumentNullException(nameof(signingSettings));
     _signatureHeaderEnsurer = signatureHeaderEnsurer ?? throw new ArgumentNullException(nameof(signatureHeaderEnsurer));
     _systemClock            = systemClock ?? throw new ArgumentNullException(nameof(systemClock));
     _logger = logger;
 }