WCF Custom Validator传递参数和/或找出调用自定义验证器的行为?

时间:2013-10-10 07:38:49

标签: wcf x509certificate2

当我从web.config调用X509CertificateValidator时:

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

  2. 是否有可能找出调用MyServiceBehaviour的行为(在本例中为MyX509CertificateValidator)(如果你在web.config中有多个行为)?< / p>

0 个答案:

没有答案