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/Principal/TGenericPrincipal.php | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 framework/Web/Security/Principal/TGenericPrincipal.php (limited to 'framework/Web/Security/Principal/TGenericPrincipal.php') diff --git a/framework/Web/Security/Principal/TGenericPrincipal.php b/framework/Web/Security/Principal/TGenericPrincipal.php new file mode 100644 index 00000000..8e07388e --- /dev/null +++ b/framework/Web/Security/Principal/TGenericPrincipal.php @@ -0,0 +1,34 @@ + + * @version $Id: TGenericPrincipal.php 1398 2006-09-08 19:31:03Z xue $ + * @package System.Web.Security.Principal + * @since 3.1 + */ +Prado::using('System.Web.Security.Principal.IPrincipal'); +class TGenericPrincipal implements IPrincipal +{ + private $_identity; + + public function getIdentity() + { + return $this->_identity; + } + public function setIdentity($value) + { + $this->_identity = TPropertyValue::ensureString($value); + } + + public function __construct($name, $type=null) + { + + } + public function isInRole($role) + { + + } +} +?> \ No newline at end of file -- cgit v1.2.3