ICertificatePolicy.CheckValidationResult(ServicePoint, X509Certificate, WebRequest, Int32) Método

Definição

Valida um certificado do servidor.Validates a server certificate.

public:
 bool CheckValidationResult(System::Net::ServicePoint ^ srvPoint, System::Security::Cryptography::X509Certificates::X509Certificate ^ certificate, System::Net::WebRequest ^ request, int certificateProblem);
public bool CheckValidationResult (System.Net.ServicePoint srvPoint, System.Security.Cryptography.X509Certificates.X509Certificate certificate, System.Net.WebRequest request, int certificateProblem);
abstract member CheckValidationResult : System.Net.ServicePoint * System.Security.Cryptography.X509Certificates.X509Certificate * System.Net.WebRequest * int -> bool
Public Function CheckValidationResult (srvPoint As ServicePoint, certificate As X509Certificate, request As WebRequest, certificateProblem As Integer) As Boolean

Parâmetros

srvPoint
ServicePoint

O ServicePoint que usará o certificado.The ServicePoint that will use the certificate.

certificate
X509Certificate

O certificado a ser validado.The certificate to validate.

request
WebRequest

A solicitação que recebeu o certificado.The request that received the certificate.

certificateProblem
Int32

O problema que foi encontrado ao usar o certificado.The problem that was encountered when using the certificate.

Retornos

Boolean

true se o certificado precisar ser respeitado; caso contrário, false.true if the certificate should be honored; otherwise, false.

Comentários

O CheckValidationResult método implementa a política de validação de certificado de aplicativo.The CheckValidationResult method implements the application certificate validation policy. O método pode examinar os srvPoint parâmetros,, certificate request e certificateProblem para determinar se o certificado deve ser respeitado.The method can examine the srvPoint, certificate, request, and certificateProblem parameters to determine whether the certificate should be honored.

O certificateProblem parâmetro é um código de status de SSPI (interface do provedor de suporte de segurança).The certificateProblem parameter is a Security Support Provider Interface (SSPI) status code. Para obter mais informações, consulte a documentação do SSPI no MSDN.For more information, see the SSPI documentation on MSDN.

Aplica-se a