CertificateXmlEncryptor 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
CertificateXmlEncryptor(X509Certificate2, ILoggerFactory)
public:
CertificateXmlEncryptor(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public CertificateXmlEncryptor (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.DataProtection.XmlEncryption.CertificateXmlEncryptor : System.Security.Cryptography.X509Certificates.X509Certificate2 * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.DataProtection.XmlEncryption.CertificateXmlEncryptor
Public Sub New (certificate As X509Certificate2, loggerFactory As ILoggerFactory)
參數
- certificate
- X509Certificate2
- loggerFactory
- ILoggerFactory
適用於
CertificateXmlEncryptor(String, ICertificateResolver, ILoggerFactory)
建立 CertificateXmlEncryptor 指定的憑證指紋、 ICertificateResolver 可用來解析憑證的 ,以及 IServiceProvider 。
public:
CertificateXmlEncryptor(System::String ^ thumbprint, Microsoft::AspNetCore::DataProtection::XmlEncryption::ICertificateResolver ^ certificateResolver, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public CertificateXmlEncryptor (string thumbprint, Microsoft.AspNetCore.DataProtection.XmlEncryption.ICertificateResolver certificateResolver, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.DataProtection.XmlEncryption.CertificateXmlEncryptor : string * Microsoft.AspNetCore.DataProtection.XmlEncryption.ICertificateResolver * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.DataProtection.XmlEncryption.CertificateXmlEncryptor
Public Sub New (thumbprint As String, certificateResolver As ICertificateResolver, loggerFactory As ILoggerFactory)
參數
- thumbprint
- String
- certificateResolver
- ICertificateResolver
- loggerFactory
- ILoggerFactory