2 // System.Security.AccessControl.CryptoKeySecurity implementation
5 // Sebastien Pouliot <sebastien@ximian.com>
6 // Dick Porter <dick@ximian.com>
7 // Atsushi Enomoto <atsushi@ximian.com>
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:
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
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;
40 public CryptoKeySecurity ()
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); }
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
);
70 public void AddAccessRule (CryptoKeyAccessRule rule
)
72 throw new NotImplementedException ();
76 public bool RemoveAccessRule (CryptoKeyAccessRule rule
)
78 throw new NotImplementedException ();
82 public void RemoveAccessRuleAll (CryptoKeyAccessRule rule
)
84 throw new NotImplementedException ();
88 public void RemoveAccessRuleSpecific (CryptoKeyAccessRule rule
)
90 throw new NotImplementedException ();
94 public void ResetAccessRule (CryptoKeyAccessRule rule
)
96 throw new NotImplementedException ();
100 public void SetAccessRule (CryptoKeyAccessRule rule
)
102 throw new NotImplementedException ();
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
);
113 public void AddAuditRule (CryptoKeyAuditRule rule
)
115 throw new NotImplementedException ();
119 public bool RemoveAuditRule (CryptoKeyAuditRule rule
)
121 throw new NotImplementedException ();
125 public void RemoveAuditRuleAll (CryptoKeyAuditRule rule
)
127 throw new NotImplementedException ();
131 public void RemoveAuditRuleSpecific (CryptoKeyAuditRule rule
)
133 throw new NotImplementedException ();
137 public void SetAuditRule (CryptoKeyAuditRule rule
)
139 throw new NotImplementedException ();