ICertificateValidator.Validate Method (Object, X509Certificate, X509Chain, SslPolicyErrors)
Verifies the remote Secure Sockets Layer (SSL) certificate used for authentication.
Namespace: Microsoft.Owin.Security
Assembly: Microsoft.Owin.Security (in Microsoft.Owin.Security.dll)
Syntax
bool Validate(
object sender,
X509Certificate certificate,
X509Chain chain,
SslPolicyErrors sslPolicyErrors
)
bool Validate(
Object^ sender,
X509Certificate^ certificate,
X509Chain^ chain,
SslPolicyErrors sslPolicyErrors
)
abstract Validate :
sender:Object *
certificate:X509Certificate *
chain:X509Chain *
sslPolicyErrors:SslPolicyErrors -> bool
Function Validate (
sender As Object,
certificate As X509Certificate,
chain As X509Chain,
sslPolicyErrors As SslPolicyErrors
) As Boolean
Parameters
sender
Type: System.ObjectAn object that contains state information for this validation.
certificate
Type: System.Security.Cryptography.X509Certificates.X509CertificateThe certificate used to authenticate the remote party.
chain
Type: System.Security.Cryptography.X509Certificates.X509ChainThe chain of certificate authorities associated with the remote certificate.
sslPolicyErrors
Type: System.Net.Security.SslPolicyErrorsOne or more errors associated with the remote certificate.
Return Value
Type: System.Boolean
A Boolean value that determines whether the specified certificate is accepted for authentication.
See Also
ICertificateValidator Interface
Microsoft.Owin.Security Namespace
Return to top