28 private IntPtr m_parentWindowHandle;
42 if (((
int)value & ~num) != 0)
56 return m_cryptoKeySecurity;
60 m_cryptoKeySecurity = value;
74 m_keyPassword = value;
85 return m_parentWindowHandle;
89 m_parentWindowHandle = value;
96 : this(24, null, null)
103 : this(dwTypeIn, null, null)
111 : this(dwTypeIn, strProviderNameIn, null)
119 public CspParameters(
int dwTypeIn,
string strProviderNameIn,
string strContainerNameIn)
131 : this(providerType, providerName, keyContainerName)
133 m_cryptoKeySecurity = cryptoKeySecurity;
134 m_keyPassword = keyPassword;
144 : this(providerType, providerName, keyContainerName)
146 m_cryptoKeySecurity = cryptoKeySecurity;
147 m_parentWindowHandle = parentWindowHandle;
165 Flags = parameters.Flags;
166 m_cryptoKeySecurity = parameters.m_cryptoKeySecurity;
167 m_keyPassword = parameters.m_keyPassword;
168 m_parentWindowHandle = parameters.m_parentWindowHandle;
IntPtr ParentWindowHandle
Gets or sets a handle to the unmanaged parent window for a smart card password dialog box.
int KeyNumber
Specifies whether an asymmetric key is created as a signature key or an exchange key.
string KeyContainerName
Represents the key container name for T:System.Security.Cryptography.CspParameters.
CspProviderFlags
Specifies flags that modify the behavior of the cryptographic service providers (CSP).
string ProviderName
Represents the provider name for T:System.Security.Cryptography.CspParameters.
Provides information about, and means to manipulate, the current environment and platform....
CspParameters(int dwTypeIn, string strProviderNameIn, string strContainerNameIn)
Initializes a new instance of the T:System.Security.Cryptography.CspParameters class with the specifi...
Represents text that should be kept confidential, such as by deleting it from computer memory when no...
A platform-specific type that is used to represent a pointer or a handle.
CspParameters(int dwTypeIn, string strProviderNameIn)
Initializes a new instance of the T:System.Security.Cryptography.CspParameters class with the specifi...
Contains parameters that are passed to the cryptographic service provider (CSP) that performs cryptog...
CspParameters(int providerType, string providerName, string keyContainerName, CryptoKeySecurity cryptoKeySecurity, IntPtr parentWindowHandle)
Initializes a new instance of the T:System.Security.Cryptography.CspParameters class using a provider...
The exception that is thrown when one of the arguments provided to a method is not valid.
KeyNumber
Specifies whether to create an asymmetric signature key or an asymmetric exchange key.
CspParameters(int providerType, string providerName, string keyContainerName, CryptoKeySecurity cryptoKeySecurity, SecureString keyPassword)
Initializes a new instance of the T:System.Security.Cryptography.CspParameters class using a provider...
static readonly IntPtr Zero
A read-only field that represents a pointer or handle that has been initialized to zero.
SecureString KeyPassword
Gets or sets a password associated with a smart card key.
Provides the ability to control access to a cryptographic key object without direct manipulation of a...
int ProviderType
Represents the provider type code for T:System.Security.Cryptography.CspParameters.
Do not specify any settings.
CspParameters()
Initializes a new instance of the T:System.Security.Cryptography.CspParameters class.
CspParameters(int dwTypeIn)
Initializes a new instance of the T:System.Security.Cryptography.CspParameters class with the specifi...
CspProviderFlags Flags
Represents the flags for T:System.Security.Cryptography.CspParameters that modify the behavior of the...