blob: 98fedabdcae3d8a407b7c55224de6fa881357957 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
//
// System.Web.Security.FormsIdentity
//
// Authors:
// Gonzalo Paniagua Javier (gonzalo@ximian.com)
//
// (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;
}
}
}
}
|