CertificateThumbprintValidator.Validate Method
Validates that the certificate thumbprints in the signing chain match at least one whitelisted thumbprint.
Namespace: Microsoft.Owin.Security
Assembly: Microsoft.Owin.Security (in Microsoft.Owin.Security.dll)
Syntax
'Declaration
Public Function Validate ( _
sender As Object, _
certificate As X509Certificate, _
chain As X509Chain, _
sslPolicyErrors As SslPolicyErrors _
) As Boolean
'Usage
Dim instance As CertificateThumbprintValidator
Dim sender As Object
Dim certificate As X509Certificate
Dim chain As X509Chain
Dim sslPolicyErrors As SslPolicyErrors
Dim returnValue As Boolean
returnValue = instance.Validate(sender, _
certificate, chain, sslPolicyErrors)
public bool Validate(
Object sender,
X509Certificate certificate,
X509Chain chain,
SslPolicyErrors sslPolicyErrors
)
public:
virtual bool Validate(
Object^ sender,
X509Certificate^ certificate,
X509Chain^ chain,
SslPolicyErrors sslPolicyErrors
) sealed
abstract Validate :
sender:Object *
certificate:X509Certificate *
chain:X509Chain *
sslPolicyErrors:SslPolicyErrors -> bool
override Validate :
sender:Object *
certificate:X509Certificate *
chain:X509Chain *
sslPolicyErrors:SslPolicyErrors -> bool
public final function Validate(
sender : Object,
certificate : X509Certificate,
chain : X509Chain,
sslPolicyErrors : SslPolicyErrors
) : boolean
Parameters
- sender
Type: System.Object
An object that contains state information for this validation.
- certificate
Type: System.Security.Cryptography.X509Certificates.X509Certificate
The certificate used to authenticate the remote party.
- chain
Type: System.Security.Cryptography.X509Certificates.X509Chain
The chain of certificate authorities associated with the remote certificate.
- sslPolicyErrors
Type: System.Net.Security.SslPolicyErrors
One 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.
Implements
ICertificateValidator.Validate(Object, X509Certificate, X509Chain, SslPolicyErrors)