blob: d29a2845c637c6d246a6d248700a79f489974ad4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
//
// System.Security.SecurityManager.cs
//
// Author:
// Nick Drochak(ndrochak@gol.com)
//
// (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){}
}
}
|