|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00026 require_once 'Zend/Service/DeveloperGarden/Response/ResponseAbstract.php'; 00027 00031 require_once 'Zend/Service/DeveloperGarden/Response/SecurityTokenServer/Interface.php'; 00032 00041 class Zend_Service_DeveloperGarden_Response_SecurityTokenServer_SecurityTokenResponse 00042 extends Zend_Service_DeveloperGarden_Response_ResponseAbstract 00043 implements Zend_Service_DeveloperGarden_Response_SecurityTokenServer_Interface 00044 { 00050 public $tokenFormat = null; 00051 00057 public $tokenEncoding = null; 00058 00064 public $tokenData = null; 00065 00071 public function getTokenData() 00072 { 00073 if (empty($this->tokenData)) { 00074 require_once 'Zend/Services/DeveloperGarden/Response/Exception.php'; 00075 throw new Zend_Service_DeveloperGarden_Response_Exception('No valid tokenData found.'); 00076 } 00077 00078 return $this->tokenData; 00079 } 00080 00086 public function getTokenFormat() 00087 { 00088 return $this->tokenFormat; 00089 } 00090 00096 public function getTokenEncoding() 00097 { 00098 return $this->tokenEncoding; 00099 } 00100 00106 public function isValid() 00107 { 00111 if (!empty($this->securityTokenData)) { 00112 return true; 00113 } 00114 return false; 00115 } 00116 }