2009-12-21 Marek Habersack <mhabersack@novell.com>
[mono.git] / mcs / class / corlib / System.Security.AccessControl / CryptoKeySecurity.cs
1 //
2 // System.Security.AccessControl.CryptoKeySecurity implementation
3 //
4 // Authors:
5 //      Sebastien Pouliot  <sebastien@ximian.com>
6 //      Dick Porter <dick@ximian.com>
7 //      Atsushi Enomoto  <atsushi@ximian.com>
8 //
9 // Copyright (C) 2005-2007 Novell, Inc (http://www.novell.com)
10 //
11 // Permission is hereby granted, free of charge, to any person obtaining
12 // a copy of this software and associated documentation files (the
13 // "Software"), to deal in the Software without restriction, including
14 // without limitation the rights to use, copy, modify, merge, publish,
15 // distribute, sublicense, and/or sell copies of the Software, and to
16 // permit persons to whom the Software is furnished to do so, subject to
17 // the following conditions:
18 // 
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
21 // 
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 //
30
31 using System.Security.Principal;
32
33 namespace System.Security.AccessControl
34 {
35         public sealed class CryptoKeySecurity : NativeObjectSecurity
36         {
37 //              CommonSecurityDescriptor securityDescriptor;
38                 
39                 [MonoTODO]
40                 public CryptoKeySecurity ()
41                 {
42                 }
43
44                 [MonoTODO]
45                 public CryptoKeySecurity (CommonSecurityDescriptor securityDescriptor)
46                 {
47 //                      this.securityDescriptor = securityDescriptor;
48                 }
49                 
50                 public override Type AccessRightType {
51                         get { return typeof (CryptoKeyRights); }
52                 }
53                 
54                 public override Type AccessRuleType {
55                         get { return typeof (CryptoKeyAccessRule); }
56                 }
57
58                 public override Type AuditRuleType {
59                         get { return typeof (CryptoKeyAuditRule); }
60                 }
61                 
62                 // AccessRule
63                 
64                 public override sealed AccessRule AccessRuleFactory (IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type)
65                 {
66                         return new CryptoKeyAccessRule (identityReference, (CryptoKeyRights) accessMask, type);
67                 }
68                 
69                 [MonoTODO]
70                 public void AddAccessRule (CryptoKeyAccessRule rule)
71                 {
72                         throw new NotImplementedException ();
73                 }
74                 
75                 [MonoTODO]
76                 public bool RemoveAccessRule (CryptoKeyAccessRule rule)
77                 {
78                         throw new NotImplementedException ();
79                 }
80                 
81                 [MonoTODO]
82                 public void RemoveAccessRuleAll (CryptoKeyAccessRule rule)
83                 {
84                         throw new NotImplementedException ();
85                 }
86                 
87                 [MonoTODO]
88                 public void RemoveAccessRuleSpecific (CryptoKeyAccessRule rule)
89                 {
90                         throw new NotImplementedException ();
91                 }
92                 
93                 [MonoTODO]
94                 public void ResetAccessRule (CryptoKeyAccessRule rule)
95                 {
96                         throw new NotImplementedException ();
97                 }
98                 
99                 [MonoTODO]
100                 public void SetAccessRule (CryptoKeyAccessRule rule)
101                 {
102                         throw new NotImplementedException ();
103                 }
104                 
105                 // AuditRule
106                 
107                 public override sealed AuditRule AuditRuleFactory (IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags)
108                 {
109                         return new CryptoKeyAuditRule (identityReference, (CryptoKeyRights) accessMask, flags);
110                 }
111                 
112                 [MonoTODO]
113                 public void AddAuditRule (CryptoKeyAuditRule rule)
114                 {
115                         throw new NotImplementedException ();
116                 }
117                 
118                 [MonoTODO]
119                 public bool RemoveAuditRule (CryptoKeyAuditRule rule)
120                 {
121                         throw new NotImplementedException ();
122                 }
123                 
124                 [MonoTODO]
125                 public void RemoveAuditRuleAll (CryptoKeyAuditRule rule)
126                 {
127                         throw new NotImplementedException ();
128                 }
129                 
130                 [MonoTODO]
131                 public void RemoveAuditRuleSpecific (CryptoKeyAuditRule rule)
132                 {
133                         throw new NotImplementedException ();
134                 }
135                 
136                 [MonoTODO]
137                 public void SetAuditRule (CryptoKeyAuditRule rule)
138                 {
139                         throw new NotImplementedException ();
140                 }
141         }
142 }
143