X509PeerCertificateAuthentication.CustomCertificateValidator Property

 

Gets or sets a custom client certificate validator.

Namespace:   System.ServiceModel.Security
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public X509CertificateValidator CustomCertificateValidator { get; set; }

Property Value

Type: System.IdentityModel.Selectors.X509CertificateValidator

The custom client certificate validator.

Exception Condition
InvalidOperationException

Set when credential is read-only.

Windows Communication Foundation (WCF) provides a default client certificate validator that verifies the client certificate against the trusted people store and also checks that the certificate chains up to a valid root. A custom validator can be implemented to obtain a different behavior. This property allows a custom validator to be specified.

.NET Framework
Available since 3.0
Return to top
Show: