summaryrefslogtreecommitdiff
path: root/framework/Web/Security/Principal/TGenericIdentity.php
diff options
context:
space:
mode:
authorjrags <>2006-11-01 04:47:01 +0000
committerjrags <>2006-11-01 04:47:01 +0000
commit6d28e3f62535bb637b08287585bf9c13dfd756d2 (patch)
treeea8e6ba21ff3f5fcf7c16933d7c9a8ed224a2412 /framework/Web/Security/Principal/TGenericIdentity.php
parentb4403995107c4440b4e19dd5e5e8385e0eac2a5a (diff)
Update of new Security code, currently working on making TLogin functional so we can test the providers soon.
Diffstat (limited to 'framework/Web/Security/Principal/TGenericIdentity.php')
-rw-r--r--framework/Web/Security/Principal/TGenericIdentity.php48
1 files changed, 48 insertions, 0 deletions
diff --git a/framework/Web/Security/Principal/TGenericIdentity.php b/framework/Web/Security/Principal/TGenericIdentity.php
new file mode 100644
index 00000000..037ebc42
--- /dev/null
+++ b/framework/Web/Security/Principal/TGenericIdentity.php
@@ -0,0 +1,48 @@
+<?php
+/**
+ * TGenericIdentity class.
+ * Represents a generic user.
+ *
+ * @author Jason Ragsdale <jrags@jasrags.net>
+ * @version $Id: TGenericIdentity.php 1398 2006-09-08 19:31:03Z xue $
+ * @package System.Web.Security.Principal
+ * @since 3.1
+ */
+Prado::using('System.Web.Security.Principal.IIdentity');
+class TGenericIdentity implements IIdentity
+{
+ private $_authenticationType;
+ private $_isAuthenticated;
+ private $_name;
+
+ 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 __construct($name, $type=null)
+ {
+
+ }
+}
+?> \ No newline at end of file