August 2003
Intermediate to advanced
928 pages
32h 1m
English
ICertificatePolicy
This interface validates the certificates
that web servers present to your
applications. If you create a web request that uses the
https protocol, the .NET Framework uses the
default certificate policy to validate the server’s
certificate.
You can implement this interface to create your own custom
certificate policy. Unlike authentication modules, only one
certificate policy may be active at a time. To set this, create an
instance of your implementation and assign it to
ServicePointManager.CertificatePolicy.
public interface ICertificatePolicy { // Public Instance Methods public bool CheckValidationResult(ServicePointsrvPoint, System.Security.Cryptography.X509Certificates.X509Certificatecertificate, WebRequestrequest, intcertificateProblem); }
ServicePointManager.CertificatePolicy
ServicePointManager.CertificatePolicy