getSecurityToken(); } /** * returns the security token * * @return string */ public function getSecurityToken() { if (!$this->securityToken instanceof Zend_Service_DeveloperGarden_Response_SecurityTokenServer_SecurityTokenResponse) { require_once 'Zend/Service/DeveloperGarden/Response/SecurityTokenServer/Exception.php'; throw new Zend_Service_DeveloperGarden_Response_SecurityTokenServer_Exception( 'No valid securityToken found.' ); } return $this->securityToken->getTokenData(); } /** * returns true if the stored token data is valid * * @return boolean */ public function isValid() { /** * @todo implement the true token validation check */ if (isset($this->securityToken) && !empty($this->securityToken->tokenData) ) { return true; } return false; } }