summaryrefslogtreecommitdiff
path: root/framework/Web/Security/Principal
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/Security/Principal')
-rw-r--r--framework/Web/Security/Principal/IIdentity.php24
-rw-r--r--framework/Web/Security/Principal/IPrincipal.php19
-rw-r--r--framework/Web/Security/Principal/TGenericIdentity.php48
-rw-r--r--framework/Web/Security/Principal/TGenericPrincipal.php34
4 files changed, 0 insertions, 125 deletions
diff --git a/framework/Web/Security/Principal/IIdentity.php b/framework/Web/Security/Principal/IIdentity.php
deleted file mode 100644
index 89bc0f70..00000000
--- a/framework/Web/Security/Principal/IIdentity.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-/**
- * IIdentity interface.
- * Defines the basic functionality of a principal object.
- *
- * @author Jason Ragsdale <jrags@jasrags.net>
- * @version $Id: IIdentity.php 1398 2006-09-08 19:31:03Z xue $
- * @package System.Web.Security.Principal
- * @since 3.1
- */
-interface IIdentity
-{
- private $_authenticationType;
- private $_isAuthenticated;
- private $_name;
-
- public function getAuthenticationType();
- public function setAuthenticationType($value);
- public function getIsAuthenticated();
- public function setIsAuthenticated($value);
- public function getName();
- public function setName($value);
-}
-?> \ No newline at end of file
diff --git a/framework/Web/Security/Principal/IPrincipal.php b/framework/Web/Security/Principal/IPrincipal.php
deleted file mode 100644
index 9503387a..00000000
--- a/framework/Web/Security/Principal/IPrincipal.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-/**
- * IPrincipal interface.
- * Defines the basic functionality of an identity object.
- *
- * @author Jason Ragsdale <jrags@jasrags.net>
- * @version $Id: IIdentity.php 1398 2006-09-08 19:31:03Z xue $
- * @package System.Web.Security.Principal
- * @since 3.1
- */
-interface IPrincipal
-{
- private $_identity;
-
- public function getIdentity();
- public function setIdentity($value);
- public function isInRole($role);
-}
-?> \ No newline at end of file
diff --git a/framework/Web/Security/Principal/TGenericIdentity.php b/framework/Web/Security/Principal/TGenericIdentity.php
deleted file mode 100644
index 037ebc42..00000000
--- a/framework/Web/Security/Principal/TGenericIdentity.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?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
diff --git a/framework/Web/Security/Principal/TGenericPrincipal.php b/framework/Web/Security/Principal/TGenericPrincipal.php
deleted file mode 100644
index 8e07388e..00000000
--- a/framework/Web/Security/Principal/TGenericPrincipal.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-/**
- * TGenericPrincipal class.
- * Represents a generic principal.
- *
- * @author Jason Ragsdale <jrags@jasrags.net>
- * @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