2

当我从 web.config 调用 X509CertificateValidator 时:

<serviceBehaviors>
        <behavior name="MyServiceBehaviour">
          [...]
            <clientCertificate>
              <authentication certificateValidationMode="Custom" customCertificateValidatorType="MyX509CertificateValidator, service" />
            </clientCertificate>
           [...] 
        </behavior>
</serviceBehaviors>
  1. 是否可以将任何参数/数据传递给MyX509CertificateValidator类?

  2. 是否有可能找出调用了哪个行为(在这种情况下MyServiceBehaviourMyX509CertificateValidator(如果您在 web.config 中有多个行为)?

4

0 回答 0