mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* list: added new files in System.Web.Security * System.Web.Security/DefaultAuthenticationEventHandler.cs: * System.Web.Security/DefaultAuthenticationModule.cs: * System.Web.Security/FileAuthorizationModule.cs: * System.Web.Security/FormsAuthentication.cs: * System.Web.Security/FormsAuthenticationEventArgs.cs: * System.Web.Security/FormsAuthenticationEventHandler.cs: * System.Web.Security/FormsAuthenticationModule.cs: * System.Web.Security/FormsAuthenticationTicket.cs: * System.Web.Security/FormsIdentity.cs: * System.Web.Security/PassportAuthenticationEventArgs.cs: * System.Web.Security/PassportAuthenticationEventHandler.cs: * System.Web.Security/PassportAuthenticationModule.cs: * System.Web.Security/PassportIdentity.cs: * System.Web.Security/UrlAuthorizationModule.cs: * System.Web.Security/WindowsAuthenticationEventArgs.cs: * System.Web.Security/WindowsAuthenticationEventHandler.cs: * System.Web.Security/WindowsAuthenticationModule.cs: new files. Some of them implemented, some others stubbed out. svn path=/trunk/mcs/; revision=7073
55 lines
738 B
C#
55 lines
738 B
C#
//
|
|
// System.Web.Security.FormsIdentity
|
|
//
|
|
// Authors:
|
|
// Gonzalo Paniagua Javier ([email protected])
|
|
//
|
|
// (C) 2002 Ximian, Inc (http://www.ximian.com)
|
|
//
|
|
|
|
using System;
|
|
using System.Security.Principal;
|
|
|
|
namespace System.Web.Security
|
|
{
|
|
[Serializable]
|
|
public sealed class FormsIdentity : IIdentity
|
|
{
|
|
FormsAuthenticationTicket ticket;
|
|
|
|
public FormsIdentity (FormsAuthenticationTicket ticket)
|
|
{
|
|
this.ticket = ticket;
|
|
}
|
|
|
|
public string AuthenticationType
|
|
{
|
|
get {
|
|
return "Forms";
|
|
}
|
|
}
|
|
|
|
public bool IsAuthenticated
|
|
{
|
|
get {
|
|
return true;
|
|
}
|
|
}
|
|
|
|
public string Name
|
|
{
|
|
get {
|
|
return ticket.Name;
|
|
}
|
|
}
|
|
|
|
public FormsAuthenticationTicket Ticket
|
|
{
|
|
get {
|
|
return ticket;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|