summaryrefslogtreecommitdiff
path: root/framework/Web/Security/TFormsAuthenticationTicket.php
blob: e53b68b20b82e2895b49170bd72dbecfd6d3c034 (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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<?php
/**
 * TFormsAuthenticationTicket class.
 * Provides access to properties and values of the ticket used with forms 
 * authentication to identify users. This class cannot be inherited.
 *
 * @author Jason Ragsdale <jrags@jasrags.net>
 * @version $Id: TFormsAuthenticationTicket.php 1398 2006-09-08 19:31:03Z xue $
 * @package System.Web.Security
 * @since 3.1
 */
final class TFormsAuthenticationTicket
{
	private $_cookiePath;
	private $_expiration;
	private $_expired;
	private $_isPersistent;
	private $_issueDate;
	private $_name;
	private $_userData;
	private $_version;

	public function getCookiePath()
	{
		return $this->_cookiePath;
	}
	public function setCookiePath($value)
	{
		$this->_cookiePath = TPropertyValue::ensureString($value);
	}
	public function getExpiration()
	{
		return $this->_expiration;
	}
	public function setExpiration($value)
	{
		$this->_expiration = TPropertyValue::ensureString($value);
	}
	public function getExpired()
	{
		return $this->_expired;
	}
	public function setExpired($value)
	{
		$this->_expired = TPropertyValue::ensureString($value);
	}
	public function getIsPersistent()
	{
		return $this->_isPersistent;
	}
	public function setIsPersistent($value)
	{
		$this->_isPersistent = TPropertyValue::ensureString($value);
	}
	public function getIssueDate()
	{
		return $this->_issueDate;
	}
	public function setIssueDate($value)
	{
		$this->_issueDate = TPropertyValue::ensureString($value);
	}
	public function getName()
	{
		return $this->_name;
	}
	public function setName($value)
	{
		$this->_name = TPropertyValue::ensureString($value);
	}
	public function getUserData()
	{
		return $this->_userData;
	}
	public function setUserData($value)
	{
		$this->_userData = TPropertyValue::ensureString($value);
	}
	public function getVersion()
	{
		return $this->_version;
	}
	public function setVersion($value)
	{
		$this->_version = TPropertyValue::ensureString($value);
	}
	
	public function __construct()
	{

	}
}
//public sealed class FormsAuthenticationTicket
//{
//     // Methods
//     public FormsAuthenticationTicket(string name, bool isPersistent,
//int timeout);
//     public FormsAuthenticationTicket(int version, string name,
//DateTime issueDate, DateTime expiration, bool isPersistent, string
//userData);
//     public FormsAuthenticationTicket(int version, string name,
//DateTime issueDate, DateTime expiration, bool isPersistent, string
//userData, string cookiePath);
//
//     // Properties
//     public string CookiePath { get; }
//     public DateTime Expiration { get; }
//     public bool Expired { get; }
//     public bool IsPersistent { get; }
//     public DateTime IssueDate { get; }
//     public string Name { get; }
//     public string UserData { get; }
//     public int Version { get; }
//
//     // Fields
//     private string _CookiePath;
//     private DateTime _Expiration;
//     private bool _IsPersistent;
//     private DateTime _IssueDate;
//     private string _Name;
//     private string _UserData;
//     private int _Version;
//}
?>