123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.Configuration;
- using SuperSocket.SocketBase.Config;
- using System.Security.Cryptography.X509Certificates;
- namespace SuperSocket.SocketEngine.Configuration
- {
-
-
-
- public class CertificateConfig : ConfigurationElement, ICertificateConfig
- {
- #region ICertificateConfig Members
-
-
-
- [ConfigurationProperty("filePath", IsRequired = false)]
- public string FilePath
- {
- get
- {
- return this["filePath"] as string;
- }
- }
-
-
-
- [ConfigurationProperty("password", IsRequired = false)]
- public string Password
- {
- get
- {
- return this["password"] as string;
- }
- }
-
-
-
-
-
-
- [ConfigurationProperty("storeName", IsRequired = false)]
- public string StoreName
- {
- get
- {
- return this["storeName"] as string;
- }
- }
-
-
-
-
-
-
- [ConfigurationProperty("storeLocation", IsRequired = false, DefaultValue = "CurrentUser")]
- public StoreLocation StoreLocation
- {
- get
- {
- return (StoreLocation)this["storeLocation"];
- }
- }
-
-
-
- [ConfigurationProperty("thumbprint", IsRequired = false)]
- public string Thumbprint
- {
- get
- {
- return this["thumbprint"] as string;
- }
- }
-
-
-
-
-
-
- [ConfigurationProperty("clientCertificateRequired", IsRequired = false, DefaultValue = false)]
- public bool ClientCertificateRequired
- {
- get
- {
- return (bool)this["clientCertificateRequired"];
- }
- }
-
-
-
- [ConfigurationProperty("keyStorageFlags", IsRequired = false, DefaultValue = X509KeyStorageFlags.DefaultKeySet)]
- public X509KeyStorageFlags KeyStorageFlags
- {
- get
- {
- return (X509KeyStorageFlags)this["keyStorageFlags"];
- }
- }
- #endregion ICertificateConfig Members
- }
- }
|