System.Security.Permissions.KeyContainerPermissionFlags Enumeration

Specifies the type of key container access allowed.

Syntax

[System.Flags]
[System.Runtime.InteropServices.ComVisible(true)]
public enum KeyContainerPermissionFlags

Remarks

This enumeration is used by members of the System.Security.Permissions.KeyContainerPermissionAccessEntry class.

Note:

Many of these flags can have powerful effects and should be granted only to highly trusted code.

The most powerful of the flags are KeyContainerPermissionFlags.Create, KeyContainerPermissionFlags.Delete, KeyContainerPermissionFlags.Import, KeyContainerPermissionFlags.Export, KeyContainerPermissionFlags.Sign, KeyContainerPermissionFlags.Decrypt, and KeyContainerPermissionFlags.AllFlags. For specific threats that the use of these flags can present, see the member descriptions.

Members

Member NameDescription
AllFlags

Create, decrypt, delete, and open a key container; export and import a key; sign files using a key; and view and change the access control list for a key container.

ChangeAcl

Change the access control list (ACL) for a key container.

Create

Create a key container.

Decrypt

Decrypt a key container.

Delete

Delete a key container.

Export

Export a key from a key container.

Import

Import a key into a key container.

NoFlags

No access to a key container.

Open

Open a key container and use the public key.

Sign

Sign a file using a key.

ViewAcl

View the access control list (ACL) for a key container.

Requirements

Namespace: System.Security.Permissions
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0