userId = $userId; $this->appUrl = $appUrl; $this->appId = $appId; $this->domain = $domain; } public function isAnonymous() { return ($this->userId == null); } public function getOwnerId() { return $this->userId; } public function getViewerId() { return $this->userId; } public function getAppId() { return $this->appId; } public function getDomain() { return $this->domain; } public function getAppUrl() { return $this->appUrl; } public function getModuleId() { return null; } public function toSerialForm() { return "OAuthSecurityToken[userId=$userId,appUrl=$appUrl,appId=$appId,domain=$domain]"; } public function getAuthenticationMode() { return $this->authenticationMode; } public function setAuthenticationMode($mode) { $this->authenticationMode = $mode; } }