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. --- framework/Web/Security/TFormsIdentity.php | 71 +++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 framework/Web/Security/TFormsIdentity.php (limited to 'framework/Web/Security/TFormsIdentity.php') diff --git a/framework/Web/Security/TFormsIdentity.php b/framework/Web/Security/TFormsIdentity.php new file mode 100644 index 00000000..f4d00f82 --- /dev/null +++ b/framework/Web/Security/TFormsIdentity.php @@ -0,0 +1,71 @@ + + * @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; +//} +?> \ No newline at end of file -- cgit v1.2.3