Show / Hide Table of Contents

Class CertificateValidator

The certificate validator validates X.509 certificates.

Inheritance
object
CertificateValidator
Implements
ICertificateValidator
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: ComponentSpace.Saml2.Certificates
Assembly: ComponentSpace.Saml2.dll
Syntax
public class CertificateValidator : ICertificateValidator

Constructors

CertificateValidator(IOptionsMonitor<CertificateValidationOptions>, ILoggerFactory)

Initializes a new instance of the CertificateValidator class.

Declaration
public CertificateValidator(IOptionsMonitor<CertificateValidationOptions> certificateValidationOptions, ILoggerFactory loggerFactory)
Parameters
Type Name Description
IOptionsMonitor<CertificateValidationOptions> certificateValidationOptions

The certificate validation options.

ILoggerFactory loggerFactory

The logger factory.

Methods

Validate(X509Certificate2)

Validates the X.509 certificate.

Declaration
public virtual bool Validate(X509Certificate2 x509Certificate)
Parameters
Type Name Description
X509Certificate2 x509Certificate

The X.509 certificate.

Returns
Type Description
bool

true if the certificate is valid; otherwise false.

Implements

ICertificateValidator
In this article
Back to top Copyright © ComponentSpace Pty Ltd 2017-2025. All rights reserved.