PolicyStatement.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. //
  2. // System.Security.Policy.PolicyStatement
  3. //
  4. // Author:
  5. // Dan Lewis ([email protected])
  6. //
  7. // (C) 2002
  8. //
  9. namespace System.Security.Policy {
  10. [Serializable]
  11. public sealed class PolicyStatement : ISecurityEncodable, ISecurityPolicyEncodable {
  12. public PolicyStatement (PermissionSet perms) :
  13. this (perms, PolicyStatementAttribute.Nothing)
  14. {
  15. }
  16. public PolicyStatement (PermissionSet perms, PolicyStatementAttribute attrs) {
  17. this.perms = perms;
  18. this.attrs = attrs;
  19. }
  20. public PermissionSet PermissionSet {
  21. get { return perms; }
  22. set { perms = value; }
  23. }
  24. public PolicyStatementAttribute Attributes {
  25. get { return attrs; }
  26. set { attrs = value; }
  27. }
  28. public string AttributeString {
  29. get { return attrs.ToString ("F"); }
  30. }
  31. // ISecurityEncodable
  32. [MonoTODO]
  33. public void FromXml (SecurityElement e) {
  34. }
  35. [MonoTODO]
  36. public void FromXml (SecurityElement e, PolicyLevel level) {
  37. }
  38. [MonoTODO]
  39. public SecurityElement ToXml () {
  40. return null;
  41. }
  42. [MonoTODO]
  43. public SecurityElement ToXml (PolicyLevel level) {
  44. return null;
  45. }
  46. private PermissionSet perms;
  47. private PolicyStatementAttribute attrs;
  48. }
  49. }