XmlKeyManager 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
XmlKeyManager(IOptions<KeyManagementOptions>, IActivator)
建立 XmlKeyManager。
public:
XmlKeyManager(Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::DataProtection::KeyManagement::KeyManagementOptions ^> ^ keyManagementOptions, Microsoft::AspNetCore::DataProtection::Internal::IActivator ^ activator);
public XmlKeyManager (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.DataProtection.KeyManagement.KeyManagementOptions> keyManagementOptions, Microsoft.AspNetCore.DataProtection.Internal.IActivator activator);
new Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.DataProtection.KeyManagement.KeyManagementOptions> * Microsoft.AspNetCore.DataProtection.Internal.IActivator -> Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager
Public Sub New (keyManagementOptions As IOptions(Of KeyManagementOptions), activator As IActivator)
參數
- keyManagementOptions
- IOptions<KeyManagementOptions>
IOptions<TOptions>提供組態的 實例。
- activator
- Microsoft.AspNetCore.DataProtection.Internal.IActivator
Microsoft.AspNetCore.DataProtection.Internal.IActivator。
適用於
XmlKeyManager(IXmlRepository, IAuthenticatedEncryptorConfiguration, IServiceProvider)
建立 XmlKeyManager。
public:
XmlKeyManager(Microsoft::AspNetCore::DataProtection::Repositories::IXmlRepository ^ repository, Microsoft::AspNetCore::DataProtection::AuthenticatedEncryption::ConfigurationModel::IAuthenticatedEncryptorConfiguration ^ configuration, IServiceProvider ^ services);
public XmlKeyManager (Microsoft.AspNetCore.DataProtection.Repositories.IXmlRepository repository, Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorConfiguration configuration, IServiceProvider services);
new Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager : Microsoft.AspNetCore.DataProtection.Repositories.IXmlRepository * Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorConfiguration * IServiceProvider -> Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager
Public Sub New (repository As IXmlRepository, configuration As IAuthenticatedEncryptorConfiguration, services As IServiceProvider)
參數
- repository
- IXmlRepository
儲存金鑰的存放庫。
- configuration
- IAuthenticatedEncryptorConfiguration
新建立金鑰的組態。
- services
- IServiceProvider
選擇性服務的提供者。
適用於
XmlKeyManager(IOptions<KeyManagementOptions>, IActivator, ILoggerFactory)
建立 XmlKeyManager。
public:
XmlKeyManager(Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::DataProtection::KeyManagement::KeyManagementOptions ^> ^ keyManagementOptions, Microsoft::AspNetCore::DataProtection::Internal::IActivator ^ activator, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public XmlKeyManager (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.DataProtection.KeyManagement.KeyManagementOptions> keyManagementOptions, Microsoft.AspNetCore.DataProtection.Internal.IActivator activator, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.DataProtection.KeyManagement.KeyManagementOptions> * Microsoft.AspNetCore.DataProtection.Internal.IActivator * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager
Public Sub New (keyManagementOptions As IOptions(Of KeyManagementOptions), activator As IActivator, loggerFactory As ILoggerFactory)
參數
- keyManagementOptions
- IOptions<KeyManagementOptions>
IOptions<TOptions>提供組態的 實例。
- activator
- Microsoft.AspNetCore.DataProtection.Internal.IActivator
Microsoft.AspNetCore.DataProtection.Internal.IActivator。
- loggerFactory
- ILoggerFactory