11 private string m_keyStore;
13 private string m_providerName;
15 private int m_providerType;
17 private string m_keyContainerName;
19 private int m_keySpec;
43 if (value !=
"User" && value !=
"Machine" && value !=
"*")
58 return m_providerName;
72 m_providerName = value;
84 return m_providerType;
92 m_providerType = value;
103 return m_keyContainerName;
113 m_keyContainerName =
"*";
117 m_keyContainerName = value;
166 : this(null, null, -1, keyContainerName, -1, flags)
189 m_providerName = ((providerName ==
null) ?
"*" : providerName);
190 m_providerType = providerType;
191 m_keyContainerName = ((keyContainerName ==
null) ?
"*" : keyContainerName);
204 if (keyContainerPermissionAccessEntry ==
null)
208 if (keyContainerPermissionAccessEntry.m_keyStore != m_keyStore)
212 if (keyContainerPermissionAccessEntry.m_providerName != m_providerName)
216 if (keyContainerPermissionAccessEntry.m_providerType != m_providerType)
220 if (keyContainerPermissionAccessEntry.m_keyContainerName != m_keyContainerName)
224 if (keyContainerPermissionAccessEntry.m_keySpec != m_keySpec)
236 num |= (m_keyStore.GetHashCode() & 0xFF) << 24;
237 num |= (m_providerName.GetHashCode() & 0xFF) << 16;
238 num |= (m_providerType & 0xF) << 12;
239 num |= (m_keyContainerName.GetHashCode() & 0xFF) << 4;
240 return num | (m_keySpec & 0xF);
245 if (target.m_keyStore !=
"*" && m_keyStore != target.m_keyStore)
249 if (target.m_providerName !=
"*" && m_providerName != target.m_providerName)
253 if (target.m_providerType != -1 && m_providerType != target.m_providerType)
257 if (target.m_keyContainerName !=
"*" && m_keyContainerName != target.m_keyContainerName)
261 if (target.m_keySpec != -1 && m_keySpec != target.m_keySpec)
268 internal static bool IsUnrestrictedEntry(
string keyStore,
string providerName,
int providerType,
string keyContainerName,
int keySpec)
270 if (keyStore !=
"*" && keyStore !=
null)
274 if (providerName !=
"*" && providerName !=
null)
278 if (providerType != -1)
282 if (keyContainerName !=
"*" && keyContainerName !=
null)
KeyContainerPermissionAccessEntry(string keyContainerName, KeyContainerPermissionFlags flags)
Initializes a new instance of the T:System.Security.Permissions.KeyContainerPermissionAccessEntry cla...
Use key information from the computer's key store.
KeyContainerPermissionAccessEntry(string keyStore, string providerName, int providerType, string keyContainerName, int keySpec, KeyContainerPermissionFlags flags)
Initializes a new instance of the T:System.Security.Permissions.KeyContainerPermissionAccessEntry cla...
int KeySpec
Gets or sets the key specification.
Specifies access rights for specific key containers. This class cannot be inherited.
CspProviderFlags
Specifies flags that modify the behavior of the cryptographic service providers (CSP).
string ProviderName
Gets or sets the provider name.
Controls the ability to access key containers. This class cannot be inherited.
int ProviderType
Gets or sets the provider type.
Provides information about, and means to manipulate, the current environment and platform....
override int GetHashCode()
Gets a hash code for the current instance that is suitable for use in hashing algorithms and data str...
string KeyContainerName
Gets or sets the key container name.
override bool Equals(object o)
Determines whether the specified T:System.Security.Permissions.KeyContainerPermissionAccessEntry obje...
Contains parameters that are passed to the cryptographic service provider (CSP) that performs cryptog...
KeyContainerPermissionFlags
Specifies the type of key container access allowed.
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.
Specifies that the class can be serialized.
KeyContainerPermissionFlags Flags
Gets or sets the key container permissions.
string KeyStore
Gets or sets the name of the key store.