4 // Part of the Mono class libraries at
5 // mcs/class/System.Data.OracleClient/System.Data.OracleClient
7 // Assembly: System.Data.OracleClient.dll
8 // Namespace: System.Data.OracleClient
10 // Author: Tim Coleman <tim@timcoleman.com>
12 // Copyright (C) Tim Coleman, 2003
14 // Licensed under the MIT/X11 License.
18 using System.Security;
19 using System.Security.Permissions;
21 namespace System.Data.OracleClient {
23 public sealed class OraclePermission : CodeAccessPermission, IUnrestrictedPermission
27 bool allowBlankPassword;
28 PermissionState state;
34 public OraclePermission (PermissionState state)
39 #endregion // Constructors
43 public bool AllowBlankPassword {
44 get { return allowBlankPassword; }
45 set { allowBlankPassword = value; }
48 internal PermissionState State {
50 set { state = value; }
53 #endregion // Properties
57 public override IPermission Copy ()
59 OraclePermission copy = (OraclePermission) Activator.CreateInstance (this.GetType ());
60 copy.AllowBlankPassword = allowBlankPassword;
66 public override void FromXml (SecurityElement securityElement)
68 throw new NotImplementedException ();
72 public override IPermission Intersect (IPermission target)
74 if (target != null && !(target is OraclePermission))
75 throw new ArgumentException ();
76 throw new NotImplementedException ();
80 public override bool IsSubsetOf (IPermission target)
82 throw new NotImplementedException ();
85 public bool IsUnrestricted ()
87 return (State == PermissionState.Unrestricted);
91 public override SecurityElement ToXml ()
93 throw new NotImplementedException ();
97 public override IPermission Union (IPermission target)
99 if (target != null && !(target is OraclePermission))
100 throw new ArgumentException ();
101 throw new NotImplementedException ();
104 #endregion // Methods