2004-09-12 Tim Coleman <tim@timcoleamn.com>
authorTim Coleman <tim@mono-cvs.ximian.com>
Tue, 14 Sep 2004 00:28:33 +0000 (00:28 -0000)
committerTim Coleman <tim@mono-cvs.ximian.com>
Tue, 14 Sep 2004 00:28:33 +0000 (00:28 -0000)
        * TokenImpersonationLevel.cs: New enum for Fx 2.0

svn path=/trunk/mcs/; revision=33840

mcs/class/corlib/System.Security.Principal/ChangeLog
mcs/class/corlib/System.Security.Principal/TokenImpersonationLevel.cs [new file with mode: 0644]

index 25db53732e354f64cbe94e5799e34292fd14b794..b47394177bfc1d29357b6b75df473b18a38b500a 100644 (file)
@@ -1,3 +1,6 @@
+2004-09-12  Tim Coleman <tim@timcoleamn.com>
+       * TokenImpersonationLevel.cs: New enum for Fx 2.0
+
 2004-04-25  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
 
        * WindowsPrincipal.cs: Call invariant ToUpper
diff --git a/mcs/class/corlib/System.Security.Principal/TokenImpersonationLevel.cs b/mcs/class/corlib/System.Security.Principal/TokenImpersonationLevel.cs
new file mode 100644 (file)
index 0000000..436cded
--- /dev/null
@@ -0,0 +1,49 @@
+//
+// System.Security.Principal.TokenSecurityLevel.cs
+//
+// Author:
+//     Tim Coleman (tim@timcoleman.com)
+//
+// Copyright (C) Tim Coleman, 2004
+// (C) Ximian, Inc.  http://www.ximian.com
+//
+
+//
+// Copyright (C) 2004 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
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+namespace System.Security.Principal 
+{
+       [Serializable]
+       public enum TokenImpersonationLevel 
+       {
+               Anonymous = 0x01,
+               Delegation = 0x04,
+               Identification = 0x02,
+               Impersonation = 0x03,
+               None = 0x00
+       }
+}
+
+#endif