Class CertificateFileImporter
Imports SAML metadata certificates to SAML configuration as certificate files.
Inheritance
System.Object
CertificateFileImporter
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.Metadata.Import
Assembly: ComponentSpace.Saml2.dll
Syntax
public class CertificateFileImporter : ICertificateImporter
Constructors
CertificateFileImporter(IOptionsMonitor<CertificateFileImporterOptions>, ILoggerFactory)
Initializes a new instance of the CertificateFileImporter
class.
Declaration
public CertificateFileImporter(IOptionsMonitor<CertificateFileImporterOptions> certificateFileImporterOptions, ILoggerFactory loggerFactory)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Options.IOptionsMonitor<CertificateFileImporterOptions> | certificateFileImporterOptions | The certificate file importer options. |
Microsoft.Extensions.Logging.ILoggerFactory | loggerFactory | The logger factory. |
Methods
Import(X509Certificate2)
Imports the certificate as a file.
Declaration
public Certificate Import(X509Certificate2 x509Certificate)
Parameters
Type | Name | Description |
---|---|---|
System.Security.Cryptography.X509Certificates.X509Certificate2 | x509Certificate | The certificate. |
Returns
Type | Description |
---|---|
Certificate | The certificate configuration. |