2008-11-18 Marek Habersack <mhabersack@novell.com>
[mono.git] / mcs / class / System.Web / System.Web.Security / WindowsAuthenticationEventArgs.cs
index d73e99254757e989468338e9829c696bb39cbf44..519ab293bf652ded838d5b134ac7d4ab3cd0c81f 100644 (file)
@@ -5,8 +5,7 @@
 //     Gonzalo Paniagua Javier (gonzalo@ximian.com)
 //
 // (C) 2002 Ximian, Inc (http://www.ximian.com)
-//
-
+// Copyright (C) 2005 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
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-using System;
+using System.Security.Permissions;
 using System.Security.Principal;
-using System.Web;
 
 namespace System.Web.Security
 {
+       // CAS - no InheritanceDemand here as the class is sealed
+       [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
        public sealed class WindowsAuthenticationEventArgs : EventArgs
        {
                WindowsIdentity identity;
@@ -66,6 +66,7 @@ namespace System.Web.Security
                                return user;
                        }
 
+                       [SecurityPermission (SecurityAction.Demand, ControlPrincipal = true)]
                        set {
                                user = value;
                        }