blob: f4d00f82da66ed47e3f1be15744b93c282acccba (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
<?php
/**
* TFormsIdentity class.
* Represents a user identity authenticated using forms authentication. This class cannot be inherited.
*
* @author Jason Ragsdale <jrags@jasrags.net>
* @version $Id: TFormsIdentity.php 1398 2006-09-08 19:31:03Z xue $
* @package System.Web.Security
* @since 3.1
*/
Prado::using('System.Web.Security.Principal.IIdentity');
final class TFormsIdentity implements IIdentity
{
private $_authenticationType;
private $_isAuthenticated=false;
private $_name;
private $_ticket;
public function getAuthenticationType()
{
return $this->_authenticationType;
}
public function setAuthenticationType($value)
{
$this->_authenticationType = TPropertyValue::ensureString($value);
}
public function getIsAuthenticated()
{
return $this->_isAuthenticated;
}
public function setIsAuthenticated($value)
{
$this->_isAuthenticated = TPropertyValue::ensureBoolean($value);
}
public function getName()
{
return $this->_name;
}
public function setName($value)
{
$this->_name = TPropertyValue::ensureString($value);
}
public function getTicket()
{
return $this->_ticket;
}
public function setTicket($value)
{
$this->_ticket = TPropertyValue::ensureString($value);
}
public function __construct()
{
}
}
//public sealed class FormsIdentity : IIdentity
//{
// // Methods
// public FormsIdentity(FormsAuthenticationTicket ticket);
//
// // Properties
// public string AuthenticationType { get; }
// public bool IsAuthenticated { get; }
// public string Name { get; }
// public FormsAuthenticationTicket Ticket { get; }
//
// // Fields
// private FormsAuthenticationTicket _Ticket;
//}
?>
|