Class CertificateValidator
The certificate validator validates X.509 certificates.
Inheritance
System.Object
CertificateValidator
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.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 |
---|---|---|
Microsoft.Extensions.Options.IOptionsMonitor<CertificateValidationOptions> | certificateValidationOptions | The certificate validation options. |
Microsoft.Extensions.Logging.ILoggerFactory | loggerFactory | The logger factory. |
Methods
Validate(X509Certificate2)
Validates the X.509 certificate.
Declaration
public virtual bool Validate(X509Certificate2 x509Certificate)
Parameters
Type | Name | Description |
---|---|---|
System.Security.Cryptography.X509Certificates.X509Certificate2 | x509Certificate | The X.509 certificate. |
Returns
Type | Description |
---|---|
System.Boolean |
|