C# 클래스 Dev2.Runtime.Security.HostSecureConfig

The Secure Config
상속: ISecureConfig
파일 보기 프로젝트 열기: Warewolf-ESB/Warewolf

공개 메소드들

메소드 설명
CreateKey ( string base64String ) : RSACryptoServiceProvider

Creates the RSACryptoServiceProvider from the given base64 encoded key.

CreateSettings ( string serverID, string serverKey, string systemKey ) : NameValueCollection

Creates the a NameValueCollection configuration settings.

HostSecureConfig ( ) : System
HostSecureConfig ( NameValueCollection settings, bool shouldProtectConfig = true ) : System

보호된 메소드들

메소드 설명
Initialize ( NameValueCollection settings, bool shouldProtectConfig ) : void

Initializes config with the given values and optionally protects it. If shouldProtectConfig is true, then the config file must exist on disk.

ProtectConfig ( ) : void

Protects the configuration using the RsaProtectedConfigurationProvider.

SaveConfig ( NameValueCollection secureSettings ) : void

Saves the given secure settings into XML configuration file called FileName.

비공개 메소드들

메소드 설명
EnsureSecureConfigFileExists ( ) : void

메소드 상세

CreateKey() 공개 정적인 메소드

Creates the RSACryptoServiceProvider from the given base64 encoded key.
public static CreateKey ( string base64String ) : RSACryptoServiceProvider
base64String string The base64 encoded key.
리턴 System.Security.Cryptography.RSACryptoServiceProvider

CreateSettings() 공개 정적인 메소드

Creates the a NameValueCollection configuration settings.
public static CreateSettings ( string serverID, string serverKey, string systemKey ) : NameValueCollection
serverID string The server ID.
serverKey string The server key.
systemKey string The system key.
리턴 System.Collections.Specialized.NameValueCollection

HostSecureConfig() 공개 메소드

public HostSecureConfig ( ) : System
리턴 System

HostSecureConfig() 공개 메소드

public HostSecureConfig ( NameValueCollection settings, bool shouldProtectConfig = true ) : System
settings System.Collections.Specialized.NameValueCollection
shouldProtectConfig bool
리턴 System

Initialize() 보호된 메소드

Initializes config with the given values and optionally protects it. If shouldProtectConfig is true, then the config file must exist on disk.
settings
protected Initialize ( NameValueCollection settings, bool shouldProtectConfig ) : void
settings System.Collections.Specialized.NameValueCollection The settings to be loaded.
shouldProtectConfig bool true if the configuration should be protected; false otherwise.
리턴 void

ProtectConfig() 보호된 메소드

Protects the configuration using the RsaProtectedConfigurationProvider.
protected ProtectConfig ( ) : void
리턴 void

SaveConfig() 보호된 메소드

Saves the given secure settings into XML configuration file called FileName.
protected SaveConfig ( NameValueCollection secureSettings ) : void
secureSettings System.Collections.Specialized.NameValueCollection The settings to be saved.
리턴 void