Welcome to mirror list, hosted at ThFree Co, Russian Federation.

PolicyStatement.cs « System.Security.Policy « corlib « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 95a37d39b56e63b6573c681174e0568d8d0b16c6 (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
//
// System.Security.Policy.PolicyStatement
//
// Author:
//   Dan Lewis (dihlewis@yahoo.co.uk)
//
// (C) 2002
//

namespace System.Security.Policy {

	[Serializable]
	public sealed class PolicyStatement : ISecurityEncodable, ISecurityPolicyEncodable {
		public PolicyStatement (PermissionSet perms) :
			this (perms, PolicyStatementAttribute.Nothing)
		{
		}

		public PolicyStatement (PermissionSet perms, PolicyStatementAttribute attrs) {
			this.perms = perms;
			this.attrs = attrs;
		}
		
		public PermissionSet PermissionSet {
			get { return perms; }
			set { perms = value; }
		}
		
		public PolicyStatementAttribute Attributes {
			get { return attrs; }
			set { attrs = value; }
		}

		public string AttributeString {
			get { return attrs.ToString ("F"); }
		}

		// ISecurityEncodable

		[MonoTODO]
		public void FromXml (SecurityElement e) {
		}

		[MonoTODO]
		public void FromXml (SecurityElement e, PolicyLevel level) {
		}
		
		[MonoTODO]
		public SecurityElement ToXml () {
			return null;
		}

		[MonoTODO]
		public SecurityElement ToXml (PolicyLevel level) {
			return null;
		}

		private PermissionSet perms;
		private PolicyStatementAttribute attrs;
	}
}