This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
SecurityManager Methods
The methods of the SecurityManager class are listed below. For a complete list of SecurityManager class members, see the SecurityManager Members topic.
Public:
Equals (inherited from Object) |
Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality). |
GetHashCode (inherited from Object) |
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetType (inherited from Object) |
Gets the Type of the Object. |
IsGranted |
Tests if a permission is granted to caller. |
PolicyHierarchy |
Provides an enumerator to access the security policy hierarchy by levels, such as machine policy and user policy. The returned enumerator provides successive PolicyLevel objects that represent the policy at the respective (machine, user, application domain) level of the hierarchy. |
ResolvePolicy |
Decides what permissions to grant to code. This method performs the basic security decision of what permissions to grant to code based on evidence about it and what it requests. This method invokes the security policy engine providing it with evidence and code request permission sets, resulting in a grant set determined by security policy consisting of a granted permission set return value and a denied permission set as an output parameter. The effective granted permissions are those permissions in the granted set but not in the denied set. |
ResolvePolicyGroups |
This method follows the same policy evaluation as ResolvePolicy, but instead of returning granted and denied permissions it returns a collection of the code groups that matched the evidence provided, which can be useful in analyzing how a given policy configuration works with specific kinds of evidence. |
SavePolicy |
Saves policy as modified in the security policy state as exposed by the PolicyHierarchy, and the PolicyLevel, the ICodeGroup, and other classes that represent configuration of security policy. |
ToString (inherited from Object) |
Returns a String that represents the current Object. |
Protected:
Finalize (inherited from Object) |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere. |
MemberwiseClone (inherited from Object) |
Creates a shallow copy of the current Object. |
See Also
SecurityManager Class | System.Security Namespace