| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- //
- // System.Security.SecurityManager.cs
- //
- // Author:
- // Nick Drochak([email protected])
- //
- // (C) Nick Drochak
- //
- using System.Security.Policy;
- using System.Collections;
- namespace System.Security {
- public sealed class SecurityManager {
- private static bool checkExecutionRights;
- private static bool securityEnabled;
- private SecurityManager () {}
- public static bool CheckExecutionRights {
- get{
- return checkExecutionRights;
- }
- set{
- checkExecutionRights = value;
- }
- }
- public static bool SecurityEnabled {
- get{
- return securityEnabled;
- }
- set{
- securityEnabled = value;
- }
- }
- public static bool IsGranted(IPermission perm){
- return false;
- }
- public static PolicyLevel LoadPolicyLevelFromFile(
- string path,
- PolicyLevelType type)
- {
- return null;
- }
- public static PolicyLevel LoadPolicyLevelFromString(
- string str,
- PolicyLevelType type)
- {
- if (null == str){
- throw new ArgumentNullException("str");
- }
- return null;
- }
- public static IEnumerator PolicyHierarchy(){
- return null;
- }
- public static PermissionSet ResolvePolicy(Evidence evidence){
- return null;
- }
- public static PermissionSet ResolvePolicy(
- Evidence evidence,
- PermissionSet reqdPset,
- PermissionSet optPset,
- PermissionSet denyPset,
- out PermissionSet denied)
- {
- denied = null;
- return null;
- }
- public static IEnumerator ResolvePolicyGroups(Evidence evidence){
- return null;
- }
- public static void SavePolicy(){}
- public static void SavePolicyLevel(PolicyLevel level){}
- }
- }
|