コード例 #1
0
 public RequestSignatureVerifier(
     ISignatureParser signatureParser,
     IRequestSignatureVerificationOrchestrator verificationOrchestrator,
     ILogger <RequestSignatureVerifier> logger = null)
 {
     _signatureParser          = signatureParser ?? throw new ArgumentNullException(nameof(signatureParser));
     _verificationOrchestrator = verificationOrchestrator ?? throw new ArgumentNullException(nameof(verificationOrchestrator));
     _logger = logger;
 }
コード例 #2
0
 public RequestSignatureVerifier(
     ISignatureParser signatureParser,
     IClientStore clientStore,
     ISignatureVerifier signatureVerifier,
     IVerificationResultCreatorFactory verificationResultCreatorFactory,
     ILogger <RequestSignatureVerifier> logger = null)
 {
     _signatureParser   = signatureParser ?? throw new ArgumentNullException(nameof(signatureParser));
     _clientStore       = clientStore ?? throw new ArgumentNullException(nameof(clientStore));
     _signatureVerifier = signatureVerifier ?? throw new ArgumentNullException(nameof(signatureVerifier));
     _verificationResultCreatorFactory = verificationResultCreatorFactory ?? throw new ArgumentNullException(nameof(verificationResultCreatorFactory));
     _logger = logger;
 }
コード例 #3
0
        public static IHttpMessageSigningVerificationBuilder UseSignatureParser(this IHttpMessageSigningVerificationBuilder builder, ISignatureParser signatureParser)
        {
            if (signatureParser == null)
            {
                throw new ArgumentNullException(nameof(signatureParser));
            }

            return(builder.UseSignatureParser(provider => signatureParser));
        }