System.Net.ICertificatePolicy

Validates a server certificate.

See Also: ICertificatePolicy Members

Syntax

public interface ICertificatePolicy

Remarks

The System.Net.ICertificatePolicy interface is used to provide custom security certificate validation for an application. The default policy is to allow valid certificates, as well as valid certificates that have expired. To change this policy, implement the System.Net.ICertificatePolicy interface with a different policy, and then assign that policy to ServicePointManager.CertificatePolicy.

System.Net.ICertificatePolicy uses the Security Support Provider Interface (SSPI). For more information, see the SSPI documentation on MSDN.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0, 4.0.0.0