Merge pull request #2716 from BrzVlad/fix-tramp-jinfo
[mono.git] / mcs / class / System.Web / System.Web.Security / FormsIdentity.cs
index 43e2846ae230ad1d9817d8c4c3a614c7d093f452..f40793ef1f4021722fe9baf67ff05d611b38b99d 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;
 
 namespace System.Web.Security
 {
+       // CAS - no InheritanceDemand here as the class is sealed
+       [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
+       // attributes
        [Serializable]
-       public sealed class FormsIdentity : IIdentity
+       public
+       class FormsIdentity : IIdentity
        {
                FormsAuthenticationTicket ticket;