diff options
Diffstat (limited to 'mcs/class/corlib/System.Security.AccessControl/ObjectSecurity.cs')
-rw-r--r-- | mcs/class/corlib/System.Security.AccessControl/ObjectSecurity.cs | 240 |
1 files changed, 235 insertions, 5 deletions
diff --git a/mcs/class/corlib/System.Security.AccessControl/ObjectSecurity.cs b/mcs/class/corlib/System.Security.AccessControl/ObjectSecurity.cs index d2d59adc14a..e38681e3236 100644 --- a/mcs/class/corlib/System.Security.AccessControl/ObjectSecurity.cs +++ b/mcs/class/corlib/System.Security.AccessControl/ObjectSecurity.cs @@ -4,7 +4,7 @@ // Author: // Dick Porter <dick@ximian.com> // -// Copyright (C) 2005 Novell, Inc (http://www.novell.com) +// Copyright (C) 2005, 2006 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the @@ -28,16 +28,246 @@ #if NET_2_0 -namespace System.Security.AccessControl { +using System.Security.Principal; +using System.Runtime.InteropServices; - [MonoTODO ("required for CommonObjectSecurity - implementation is missing")] +namespace System.Security.AccessControl { public abstract class ObjectSecurity { + protected ObjectSecurity () + { + /* Give it a 0-param constructor */ + } + + protected ObjectSecurity (bool isContainer, bool isDS) + { + } - public ObjectSecurity () + public abstract Type AccessRightType + { + get; + } + + public abstract Type AccessRuleType + { + get; + } + + public bool AreAccessRulesCanonical + { + get { + throw new NotImplementedException (); + } + } + + public bool AreAccessRulesProtected + { + get { + throw new NotImplementedException (); + } + } + + public bool AreAuditRulesCanonical + { + get { + throw new NotImplementedException (); + } + } + + public bool AreAuditRulesProtected + { + get { + throw new NotImplementedException (); + } + } + + public abstract Type AuditRuleType + { + get; + } + + protected bool AccessRulesModified + { + get { + throw new NotImplementedException (); + } + set { + throw new NotImplementedException (); + } + } + + protected bool AuditRulesModified + { + get { + throw new NotImplementedException (); + } + set { + throw new NotImplementedException (); + } + } + + protected bool GroupModified + { + get { + throw new NotImplementedException (); + } + set { + throw new NotImplementedException (); + } + } + + protected bool IsContainer + { + get { + throw new NotImplementedException (); + } + } + + protected bool IsDS + { + get { + throw new NotImplementedException (); + } + } + + protected bool OwnerModified + { + get { + throw new NotImplementedException (); + } + set { + throw new NotImplementedException (); + } + } + + public abstract AccessRule AccessRuleFactory (IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type); + + public abstract AuditRule AuditRuleFactory (IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags); + + public IdentityReference GetGroup (Type targetType) + { + throw new NotImplementedException (); + } + + public IdentityReference GetOwner (Type targetType) + { + throw new NotImplementedException (); + } + + public byte[] GetSecurityDescriptorBinaryForm () + { + throw new NotImplementedException (); + } + + public string GetSecurityDescriptorSddlForm (AccessControlSections includeSections) + { + throw new NotImplementedException (); + } + + public static bool IsSddlConversionSupported () { + throw new NotImplementedException (); + } + + public virtual bool ModifyAccessRule (AccessControlModification modification, AccessRule rule, out bool modified) + { + throw new NotImplementedException (); + } + + public virtual bool ModifyAuditRule (AccessControlModification modification, AuditRule rule, out bool modified) + { + throw new NotImplementedException (); + } + + public virtual void PurgeAccessRules (IdentityReference identity) + { + throw new NotImplementedException (); + } + + public virtual void PurgeAuditRules (IdentityReference identity) + { + throw new NotImplementedException (); + } + + public void SetAccessRuleProtection (bool isProtected, + bool preserveInheritance) + { + throw new NotImplementedException (); + } + + public void SetAuditRuleProtection (bool isProtected, + bool preserveInheritance) + { + throw new NotImplementedException (); + } + + public void SetGroup (IdentityReference identity) + { + throw new NotImplementedException (); + } + + public void SetOwner (IdentityReference identity) + { + throw new NotImplementedException (); + } + + public void SetSecurityDescriptorBinaryForm (byte[] binaryForm) + { + throw new NotImplementedException (); + } + + public void SetSecurityDescriptorBinaryForm (byte[] binaryForm, AccessControlSections includeSections) + { + throw new NotImplementedException (); + } + + public void SetSecurityDescriptorSddlForm (string sddlForm) + { + throw new NotImplementedException (); + } + + public void SetSecurityDescriptorSddlForm (string sddlForm, AccessControlSections includeSections) + { + throw new NotImplementedException (); + } + + protected abstract bool ModifyAccess (AccessControlModification modification, AccessRule rule, out bool modified); + + protected abstract bool ModifyAudit (AccessControlModification modification, AuditRule rule, out bool modified); + + protected virtual void Persist (SafeHandle handle, AccessControlSections includeSections) + { + throw new NotImplementedException (); + } + + protected virtual void Persist (string name, AccessControlSections includeSections) + { + throw new NotImplementedException (); } - // TODO + protected virtual void Persist (bool enableOwnershipPrivilege, string name, AccessControlSections includeSections) + { + throw new NotImplementedException (); + } + + protected void ReadLock () + { + throw new NotImplementedException (); + } + + protected void ReadUnlock () + { + throw new NotImplementedException (); + } + + protected void WriteLock () + { + throw new NotImplementedException (); + } + + protected void WriteUnlock () + { + throw new NotImplementedException (); + } } } |