SecurityManager Class

Definition

Provides the main access point for classes interacting with the security system. This class cannot be inherited.

public ref class SecurityManager abstract sealed
[System.Runtime.InteropServices.ComVisible(true)]
public static class SecurityManager
type SecurityManager = class
Public Class SecurityManager
Inheritance
SecurityManager
Attributes

Remarks

Security provides methods to access and manipulate the security policy configuration. You cannot create instances of SecurityManager.

Properties

CheckExecutionRights

Gets or sets a value indicating whether code must have Execution in order to execute.

SecurityEnabled

Gets or sets a value indicating whether security is enabled.

Methods

CurrentThreadRequiresSecurityContextCapture()

Determines whether the current thread requires a security context capture if its security state has to be re-created at a later point in time.

GetStandardSandbox(Evidence)

Gets a permission set that is safe to grant to an application that has the provided evidence.

GetZoneAndOrigin(ArrayList, ArrayList)

Gets the granted zone identity and URL identity permission sets for the current assembly.

IsGranted(IPermission)

Determines whether a permission is granted to the caller.

LoadPolicyLevelFromFile(String, PolicyLevelType)

Loads a PolicyLevel from the specified file.

LoadPolicyLevelFromString(String, PolicyLevelType)

Loads a PolicyLevel from the specified string.

PolicyHierarchy()

Provides an enumerator to access the security policy hierarchy by levels, such as computer policy and user policy.

ResolvePolicy(Evidence)

Determines what permissions to grant to code based on the specified evidence.

ResolvePolicy(Evidence, PermissionSet, PermissionSet, PermissionSet, PermissionSet)

Determines what permissions to grant to code based on the specified evidence and requests.

ResolvePolicy(Evidence[])

Determines what permissions to grant to code based on the specified evidence.

ResolvePolicyGroups(Evidence)

Gets a collection of code groups matching the specified evidence.

ResolveSystemPolicy(Evidence)

Determines which permissions to grant to code based on the specified evidence, excluding the policy for the AppDomain level.

SavePolicy()

Saves the modified security policy state.

SavePolicyLevel(PolicyLevel)

Saves a modified security policy level loaded with LoadPolicyLevelFromFile(String, PolicyLevelType).

Applies to