2008-11-18 Marek Habersack <mhabersack@novell.com>
[mono.git] / mcs / class / System.Web / System.Web.Security / FormsAuthenticationTicket.cs
index cb108d98c40cb55e33d4861860af6a31d3ac6577..38c5ed90d86f8808ebeac164cb35b36891e3c622 100644 (file)
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-using System;
 using System.IO;
+using System.Security.Permissions;
 
 namespace System.Web.Security
 {
+       // CAS - no InheritanceDemand here as the class is sealed
+       [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
+       // attributes
        [Serializable]
        public sealed class FormsAuthenticationTicket
        {
@@ -103,7 +106,7 @@ namespace System.Web.Security
                        return ticket;
                }
 
-               private FormsAuthenticationTicket ()
+               FormsAuthenticationTicket ()
                {
                }