SecurityManager Class

SecurityManager Class

 

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

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

System.Object
  System.Security.SecurityManager

[ComVisibleAttribute(true)]
public static class SecurityManager

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticCheckExecutionRights

Obsolete. This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets a value indicating whether code must have Execution in order to execute.

System_CAPS_pubpropertySystem_CAPS_staticSecurityEnabled

Obsolete.Gets or sets a value indicating whether security is enabled.

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCurrentThreadRequiresSecurityContextCapture()

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.

System_CAPS_pubmethodSystem_CAPS_staticGetStandardSandbox(Evidence)

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

System_CAPS_pubmethodSystem_CAPS_staticGetZoneAndOrigin(ArrayList, ArrayList)

This API supports the product infrastructure and is not intended to be used directly from your code. Gets the granted zone identity and URL identity permission sets for the current assembly.

System_CAPS_pubmethodSystem_CAPS_staticIsGranted(IPermission)

Obsolete.Determines whether a permission is granted to the caller.

System_CAPS_pubmethodSystem_CAPS_staticLoadPolicyLevelFromFile(String, PolicyLevelType)

Obsolete.Loads a PolicyLevel from the specified file.

System_CAPS_pubmethodSystem_CAPS_staticLoadPolicyLevelFromString(String, PolicyLevelType)

Obsolete.Loads a PolicyLevel from the specified string.

System_CAPS_pubmethodSystem_CAPS_staticPolicyHierarchy()

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

System_CAPS_pubmethodSystem_CAPS_staticResolvePolicy(Evidence)

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

System_CAPS_pubmethodSystem_CAPS_staticResolvePolicy(Evidence, PermissionSet, PermissionSet, PermissionSet, PermissionSet)

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

System_CAPS_pubmethodSystem_CAPS_staticResolvePolicy(Evidence[])

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

System_CAPS_pubmethodSystem_CAPS_staticResolvePolicyGroups(Evidence)

Obsolete.Gets a collection of code groups matching the specified evidence.

System_CAPS_pubmethodSystem_CAPS_staticResolveSystemPolicy(Evidence)

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

System_CAPS_pubmethodSystem_CAPS_staticSavePolicy()

Obsolete.Saves the modified security policy state.

System_CAPS_pubmethodSystem_CAPS_staticSavePolicyLevel(PolicyLevel)

Obsolete.Saves a modified security policy level loaded with LoadPolicyLevelFromFile.

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

.NET Framework
Available since 1.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft