CryptoKeySecurity Property

CspKeyContainerInfo.CryptoKeySecurity Property

 

Gets a CryptoKeySecurity object that represents access rights and audit rules for a container.

Namespace:   System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)

public CryptoKeySecurity CryptoKeySecurity { get; }

Property Value

Type: System.Security.AccessControl.CryptoKeySecurity

A CryptoKeySecurity object that represents access rights and audit rules for a container.

Exception Condition
CryptographicException

The key type is not supported.

NotSupportedException

The cryptographic service provider cannot be found.

-or-

The key container was not found.

Use the CspKeyContainerInfo property to retrieve the CryptoKeySecurity object that manages the creation of discretionary access control lists (DACLS) and system access control lists (SACLS) for a container.

KeyContainerPermissionAccessEntryCollection

for changing and viewing the access control list associated with this key container.

Demand value: Demand.

Associated enumerations: KeyContainerPermissionFlags.ChangeAcl, KeyContainerPermissionFlags.ViewAcl.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft