SecurityManager.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. //
  2. // System.Security.SecurityManager.cs
  3. //
  4. // Author:
  5. // Nick Drochak([email protected])
  6. //
  7. // (C) Nick Drochak
  8. //
  9. using System.Security.Policy;
  10. using System.Collections;
  11. namespace System.Security {
  12. public sealed class SecurityManager {
  13. private static bool checkExecutionRights;
  14. private static bool securityEnabled;
  15. public static bool CheckExecutionRights {
  16. get{
  17. return checkExecutionRights;
  18. }
  19. set{
  20. checkExecutionRights = value;
  21. }
  22. }
  23. public static bool SecurityEnabled {
  24. get{
  25. return securityEnabled;
  26. }
  27. set{
  28. securityEnabled = value;
  29. }
  30. }
  31. public static bool IsGranted(IPermission perm){
  32. return false;
  33. }
  34. public static PolicyLevel LoadPolicyLevelFromFile(
  35. string path,
  36. PolicyLevelType type)
  37. {
  38. return null;
  39. }
  40. public static PolicyLevel LoadPolicyLevelFromString(
  41. string str,
  42. PolicyLevelType type)
  43. {
  44. if (null == str){
  45. throw new ArgumentNullException("str");
  46. }
  47. return null;
  48. }
  49. public static IEnumerator PolicyHierarchy(){
  50. return null;
  51. }
  52. public static PermissionSet ResolvePolicy(Evidence evidence){
  53. return null;
  54. }
  55. public static PermissionSet ResolvePolicy(
  56. Evidence evidence,
  57. PermissionSet reqdPset,
  58. PermissionSet optPset,
  59. PermissionSet denyPset,
  60. out PermissionSet denied)
  61. {
  62. denied = null;
  63. return null;
  64. }
  65. public static IEnumerator ResolvePolicyGroups(Evidence evidence){
  66. return null;
  67. }
  68. public static void SavePolicy(){}
  69. public static void SavePolicyLevel(PolicyLevel level){}
  70. }
  71. }