using System; using System.Runtime.InteropServices; using System.Security.AccessControl; namespace System.Security.Cryptography { /// Contains parameters that are passed to the cryptographic service provider (CSP) that performs cryptographic computations. This class cannot be inherited. // Token: 0x020004F4 RID: 1268 [ComVisible(true)] public sealed class CspParameters { /// Initializes a new instance of the class. // Token: 0x06002EE6 RID: 12006 RVA: 0x00096BB4 File Offset: 0x00094DB4 public CspParameters() : this(1) { } /// Initializes a new instance of the class with the specified provider type code. /// A provider type code that specifies the kind of provider to create. // Token: 0x06002EE7 RID: 12007 RVA: 0x00096BC0 File Offset: 0x00094DC0 public CspParameters(int dwTypeIn) : this(dwTypeIn, null) { } /// Initializes a new instance of the class with the specified provider type code and name. /// A provider type code that specifies the kind of provider to create. /// A provider name. // Token: 0x06002EE8 RID: 12008 RVA: 0x00096BCC File Offset: 0x00094DCC public CspParameters(int dwTypeIn, string strProviderNameIn) : this(dwTypeIn, null, null) { } /// Initializes a new instance of the class with the specified provider type code and name, and the specified container name. /// The provider type code that specifies the kind of provider to create. /// A provider name. /// A container name. // Token: 0x06002EE9 RID: 12009 RVA: 0x00096BD8 File Offset: 0x00094DD8 public CspParameters(int dwTypeIn, string strProviderNameIn, string strContainerNameIn) { this.ProviderType = dwTypeIn; this.ProviderName = strProviderNameIn; this.KeyContainerName = strContainerNameIn; this.KeyNumber = -1; } /// Initializes a new instance of the class using a provider type, a provider name, a container name, access information, and a handle to an unmanaged smart card password dialog. /// The provider type code that specifies the kind of provider to create. /// A provider name. /// A container name. /// A object that represents access rights and audit rules for the container. /// A handle to the parent window for a smart card password dialog. // Token: 0x06002EEA RID: 12010 RVA: 0x00096C08 File Offset: 0x00094E08 public CspParameters(int providerType, string providerName, string keyContainerName, CryptoKeySecurity cryptoKeySecurity, IntPtr parentWindowHandle) : this(providerType, providerName, keyContainerName) { if (cryptoKeySecurity != null) { this.CryptoKeySecurity = cryptoKeySecurity; } this._windowHandle = parentWindowHandle; } /// Initializes a new instance of the class using a provider type, a provider name, a container name, access information, and a password associated with a smart card key. /// The provider type code that specifies the kind of provider to create. /// A provider name. /// A container name. /// A object that represents access rights and audit rules for a container. /// A password associated with a smart card key. // Token: 0x06002EEB RID: 12011 RVA: 0x00096C38 File Offset: 0x00094E38 public CspParameters(int providerType, string providerName, string keyContainerName, CryptoKeySecurity cryptoKeySecurity, SecureString keyPassword) : this(providerType, providerName, keyContainerName) { if (cryptoKeySecurity != null) { this.CryptoKeySecurity = cryptoKeySecurity; } this._password = keyPassword; } /// Represents the flags for that modify the behavior of the cryptographic service provider (CSP). /// An enumeration value, or a bitwise combination of enumeration values. // Token: 0x17000947 RID: 2375 // (get) Token: 0x06002EEC RID: 12012 RVA: 0x00096C68 File Offset: 0x00094E68 // (set) Token: 0x06002EED RID: 12013 RVA: 0x00096C70 File Offset: 0x00094E70 public CspProviderFlags Flags { get { return this._Flags; } set { this._Flags = value; } } /// Gets or sets a object that represents access rights and audit rules for a container. /// A object that represents access rights and audit rules for a container. // Token: 0x17000948 RID: 2376 // (get) Token: 0x06002EEE RID: 12014 RVA: 0x00096C7C File Offset: 0x00094E7C // (set) Token: 0x06002EEF RID: 12015 RVA: 0x00096C84 File Offset: 0x00094E84 [MonoTODO("access control isn't implemented")] public CryptoKeySecurity CryptoKeySecurity { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } /// Gets or sets a password associated with a smart card key. /// A password associated with a smart card key. // Token: 0x17000949 RID: 2377 // (get) Token: 0x06002EF0 RID: 12016 RVA: 0x00096C8C File Offset: 0x00094E8C // (set) Token: 0x06002EF1 RID: 12017 RVA: 0x00096C94 File Offset: 0x00094E94 public SecureString KeyPassword { get { return this._password; } set { this._password = value; } } /// Gets or sets a handle to the unmanaged parent window for a smart card password dialog. /// A handle to the parent window for a smart card password dialog. // Token: 0x1700094A RID: 2378 // (get) Token: 0x06002EF2 RID: 12018 RVA: 0x00096CA0 File Offset: 0x00094EA0 // (set) Token: 0x06002EF3 RID: 12019 RVA: 0x00096CA8 File Offset: 0x00094EA8 public IntPtr ParentWindowHandle { get { return this._windowHandle; } set { this._windowHandle = value; } } // Token: 0x04001316 RID: 4886 private CspProviderFlags _Flags; /// Represents the key container name for . // Token: 0x04001317 RID: 4887 public string KeyContainerName; /// Specifies whether an asymmetric key is created as a signature key or an exchange key. // Token: 0x04001318 RID: 4888 public int KeyNumber; /// Represents the provider name for . // Token: 0x04001319 RID: 4889 public string ProviderName; /// Represents the provider type code for . // Token: 0x0400131A RID: 4890 public int ProviderType; // Token: 0x0400131B RID: 4891 private SecureString _password; // Token: 0x0400131C RID: 4892 private IntPtr _windowHandle; } }