2010-04-06 Jb Evain <jbevain@novell.com>
[mcs.git] / class / corlib / System.Security.AccessControl / CryptoKeySecurity.cs
bloba275ba2852009ad904ab20ee0690816e2d9d890b
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)
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.
31 using System.Security.Principal;
33 namespace System.Security.AccessControl
35 public sealed class CryptoKeySecurity : NativeObjectSecurity
37 // CommonSecurityDescriptor securityDescriptor;
39 [MonoTODO]
40 public CryptoKeySecurity ()
44 [MonoTODO]
45 public CryptoKeySecurity (CommonSecurityDescriptor securityDescriptor)
47 // this.securityDescriptor = securityDescriptor;
50 public override Type AccessRightType {
51 get { return typeof (CryptoKeyRights); }
54 public override Type AccessRuleType {
55 get { return typeof (CryptoKeyAccessRule); }
58 public override Type AuditRuleType {
59 get { return typeof (CryptoKeyAuditRule); }
62 // AccessRule
64 public override sealed AccessRule AccessRuleFactory (IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type)
66 return new CryptoKeyAccessRule (identityReference, (CryptoKeyRights) accessMask, type);
69 [MonoTODO]
70 public void AddAccessRule (CryptoKeyAccessRule rule)
72 throw new NotImplementedException ();
75 [MonoTODO]
76 public bool RemoveAccessRule (CryptoKeyAccessRule rule)
78 throw new NotImplementedException ();
81 [MonoTODO]
82 public void RemoveAccessRuleAll (CryptoKeyAccessRule rule)
84 throw new NotImplementedException ();
87 [MonoTODO]
88 public void RemoveAccessRuleSpecific (CryptoKeyAccessRule rule)
90 throw new NotImplementedException ();
93 [MonoTODO]
94 public void ResetAccessRule (CryptoKeyAccessRule rule)
96 throw new NotImplementedException ();
99 [MonoTODO]
100 public void SetAccessRule (CryptoKeyAccessRule rule)
102 throw new NotImplementedException ();
105 // AuditRule
107 public override sealed AuditRule AuditRuleFactory (IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags)
109 return new CryptoKeyAuditRule (identityReference, (CryptoKeyRights) accessMask, flags);
112 [MonoTODO]
113 public void AddAuditRule (CryptoKeyAuditRule rule)
115 throw new NotImplementedException ();
118 [MonoTODO]
119 public bool RemoveAuditRule (CryptoKeyAuditRule rule)
121 throw new NotImplementedException ();
124 [MonoTODO]
125 public void RemoveAuditRuleAll (CryptoKeyAuditRule rule)
127 throw new NotImplementedException ();
130 [MonoTODO]
131 public void RemoveAuditRuleSpecific (CryptoKeyAuditRule rule)
133 throw new NotImplementedException ();
136 [MonoTODO]
137 public void SetAuditRule (CryptoKeyAuditRule rule)
139 throw new NotImplementedException ();