StorePermissionFlags Enumeration
TOC
Collapse the table of content
Expand the table of content

StorePermissionFlags Enumeration

 

Specifies the permitted access to X.509 certificate stores.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:   System.Security.Permissions
Assembly:  System (in System.dll)

[SerializableAttribute]
[FlagsAttribute]
public enum StorePermissionFlags

Member nameDescription
AddToStore

The ability to add a certificate to a store.

AllFlags

The ability to perform all certificate and store operations.

CreateStore

The ability to create a new store.

DeleteStore

The ability to delete a store.

EnumerateCertificates

The ability to enumerate the certificates in a store.

EnumerateStores

The ability to enumerate the stores on a computer.

NoFlags

Permission is not given to perform any certificate or store operations.

OpenStore

The ability to open a store.

RemoveFromStore

The ability to remove a certificate from a store.

Many of these access permissions pose potential security and privacy threats. Great care should be taken in granting access to stores. A brief description of the type of threat exposed by an access can be found in the summary for the access.

The following code example shows the use of the StorePermissionFlags enumeration.

Console.WriteLine("Creating a permission with Flags = OpenStore.");
StorePermission sp = new StorePermission(StorePermissionFlags.OpenStore);

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