From 6d28e3f62535bb637b08287585bf9c13dfd756d2 Mon Sep 17 00:00:00 2001 From: jrags <> Date: Wed, 1 Nov 2006 04:47:01 +0000 Subject: Update of new Security code, currently working on making TLogin functional so we can test the providers soon. --- .../Web/Security/TFormsAuthenticationTicket.php | 124 +++++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100644 framework/Web/Security/TFormsAuthenticationTicket.php (limited to 'framework/Web/Security/TFormsAuthenticationTicket.php') diff --git a/framework/Web/Security/TFormsAuthenticationTicket.php b/framework/Web/Security/TFormsAuthenticationTicket.php new file mode 100644 index 00000000..e53b68b2 --- /dev/null +++ b/framework/Web/Security/TFormsAuthenticationTicket.php @@ -0,0 +1,124 @@ + + * @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; +//} +?> \ No newline at end of file -- cgit v1.2.3