Name
ICertificatePolicy
Synopsis
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 Function CheckValidationResult( ByVal srvPoint As ServicePoint, ByVal certificate As System.Security.Cryptography.X509Certificates.X509Certificate, ByVal request As WebRequest, ByVal certificateProblem As Integer) As Boolean End Interface
Returned By
ServicePointManager.CertificatePolicy
Passed To
ServicePointManager.CertificatePolicy
Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.