Lines Matching refs:this

154         $this->message = $message;
155 $this->text = $text;
156 $this->contact = $contact;
157 $this->reference = $reference;
162 if ($this->message &&
163 $this->message->hasKey(Auth_OpenID_OPENID_NS, 'return_to')) {
164 return $this->message->getArg(Auth_OpenID_OPENID_NS,
177 return $this->getReturnTo() !== null;
187 if (!$this->message) {
191 $msg = $this->toMessage();
192 return $msg->toURL($this->getReturnTo());
205 'error' => $this->toString()));
210 $msg = $this->toMessage();
211 return $msg->toFormMarkup($this->getReturnTo(), $form_tag_attrs);
217 $this->toFormMarkup($form_tag_attrs));
224 $namespace = $this->message->getOpenIDNamespace();
227 $reply->setArg(Auth_OpenID_OPENID_NS, 'error', $this->toString());
229 if ($this->contact !== null) {
230 $reply->setArg(Auth_OpenID_OPENID_NS, 'contact', $this->contact);
233 if ($this->reference !== null) {
235 $this->reference);
250 if ($this->hasReturnTo()) {
251 if ($this->message->isOpenID2() &&
252 (strlen($this->encodeToURL()) >
260 if (!$this->message) {
264 $mode = $this->message->getArg(Auth_OpenID_OPENID_NS,
280 if ($this->text) {
281 return $this->text;
283 return get_class($this) . " error";
315 $this->return_to = $return_to;
359 $this->assoc_handle = $assoc_handle;
360 $this->signed = $signed;
362 $this->invalidate_handle = $invalidate_handle;
364 $this->namespace = Auth_OpenID_OPENID2_NS;
365 $this->message = null;
401 $is_valid = $signatory->verify($this->assoc_handle, $this->signed);
405 $signatory->invalidate($this->assoc_handle, true);
406 $response = new Auth_OpenID_ServerResponse($this);
412 if ($this->invalidate_handle) {
413 $assoc = $signatory->getAssociation($this->invalidate_handle,
418 $this->invalidate_handle);
468 $this->dh = $dh;
469 $this->consumer_pubkey = $consumer_pubkey;
542 $mac_key = $this->dh->xorSecret($this->consumer_pubkey, $secret,
543 $this->hash_func);
546 $lib->longToBase64($this->dh->public),
595 $this->session = $session;
596 $this->namespace = Auth_OpenID_OPENID2_NS;
597 $this->assoc_type = $assoc_type;
654 $response = new Auth_OpenID_ServerResponse($this);
658 'assoc_type' => $this->assoc_type,
662 $this->session->answer($assoc->secret));
664 if (! ($this->session->session_type == 'no-encryption'
665 && $this->message->isOpenID1())) {
668 $this->session->session_type);
678 if ($this->message->isOpenID1()) {
679 return new Auth_OpenID_ServerError($this->message);
682 $response = new Auth_OpenID_ServerResponse($this);
771 $this->namespace = Auth_OpenID_OPENID2_NS;
772 $this->assoc_handle = $assoc_handle;
773 $this->identity = $identity;
775 $this->claimed_id = $identity;
777 $this->claimed_id = $claimed_id;
779 $this->return_to = $return_to;
780 $this->trust_root = $trust_root;
781 $this->server = $server;
784 $this->immediate = true;
785 $this->mode = "checkid_immediate";
787 $this->immediate = false;
788 $this->mode = "checkid_setup";
796 ($this->namespace == $other->namespace) &&
797 ($this->assoc_handle == $other->assoc_handle) &&
798 ($this->identity == $other->identity) &&
799 ($this->claimed_id == $other->claimed_id) &&
800 ($this->return_to == $other->return_to) &&
801 ($this->trust_root == $other->trust_root));
821 return call_user_func_array($this->verifyReturnTo,
822 array($this->trust_root, $this->return_to, $fetcher));
912 return $this->identity == Auth_OpenID_IDENTIFIER_SELECT;
917 if (!$this->trust_root) {
921 $tr = Auth_OpenID_TrustRoot::_parse($this->trust_root);
923 return new Auth_OpenID_MalformedTrustRoot($this->message,
924 $this->trust_root);
927 if ($this->return_to !== null) {
928 return Auth_OpenID_TrustRoot::match($this->trust_root,
929 $this->return_to);
977 if (!$this->return_to) {
982 if ((!$this->message->isOpenID1()) &&
983 (!$this->server->op_endpoint)) {
989 $server_url = $this->server->op_endpoint;
994 } else if ($this->message->isOpenID1()) {
995 if ($this->immediate) {
1001 if ($this->immediate) {
1008 if (!$this->trustRootValid()) {
1010 $this->return_to,
1011 $this->trust_root);
1014 $response = new Auth_OpenID_ServerResponse($this);
1017 ($this->message->isOpenID1())) {
1020 "available for ".$this->namespace);
1029 if ($this->identity == Auth_OpenID_IDENTIFIER_SELECT) {
1039 } else if ($this->identity) {
1041 ($this->identity != $identity)) {
1044 sprintf($fmt, $this->identity, $identity));
1047 $response_identity = $this->identity;
1048 $response_claimed_id = $this->claimed_id;
1059 if (($this->message->isOpenID1()) &&
1068 'return_to' => $this->return_to,
1071 if (!$this->message->isOpenID1()) {
1081 if ($this->message->isOpenID2()) {
1093 if ($this->immediate) {
1094 if (($this->message->isOpenID1()) &&
1102 $this->identity,
1103 $this->return_to,
1104 $this->trust_root,
1106 $this->assoc_handle,
1107 $this->server,
1108 $this->claimed_id);
1109 $setup_request->message = $this->message;
1128 if (!$this->return_to) {
1137 $q = array('mode' => $this->mode,
1138 'identity' => $this->identity,
1139 'claimed_id' => $this->claimed_id,
1140 'return_to' => $this->return_to);
1142 if ($this->trust_root) {
1143 if ($this->message->isOpenID1()) {
1144 $q['trust_root'] = $this->trust_root;
1146 $q['realm'] = $this->trust_root;
1150 if ($this->assoc_handle) {
1151 $q['assoc_handle'] = $this->assoc_handle;
1155 $this->message->getOpenIDNamespace());
1162 if (!$this->return_to) {
1166 if ($this->immediate) {
1174 $this->message->getOpenIDNamespace());
1176 return $response->toURL($this->return_to);
1189 $this->request = $request;
1190 $this->fields = new Auth_OpenID_Message($this->request->namespace);
1197 if (in_array($this->request->mode, $_Auth_OpenID_Request_Modes)) {
1198 if ($this->fields->isOpenID2() &&
1199 (strlen($this->encodeToURL()) >
1217 return $this->fields->toFormMarkup($this->request->return_to,
1227 return Auth_OpenID::autoSubmitHTML($this->toFormMarkup());
1238 return $this->whichEncoding() == Auth_OpenID_ENCODE_HTML_FORM;
1244 return $this->fields->toURL($this->request->return_to);
1249 $extension_response->toMessage($this->fields);
1254 return $this->fields->getArg(Auth_OpenID_OPENID_NS,
1260 return $this->fields->toKVForm();
1278 $this->code = $code;
1282 $this->headers = $headers;
1284 $this->headers = array();
1288 $this->body = $body;
1317 $this->store = $store;
1326 $assoc = $this->getAssociation($assoc_handle, true);
1347 $assoc = $this->getAssociation($assoc_handle, false, false);
1355 $this->invalidate($assoc_handle, false);
1358 $assoc = $this->createAssociation(true, $assoc_type);
1362 $assoc = $this->createAssociation(true);
1382 $this->SECRET_LIFETIME, $handle, $secret, $assoc_type);
1385 $key = $this->dumb_key;
1387 $key = $this->normal_key;
1390 $this->store->storeAssociation($key, $assoc);
1406 $key = $this->dumb_key;
1408 $key = $this->normal_key;
1411 $assoc = $this->store->getAssociation($key, $assoc_handle);
1415 $this->store->removeAssociation($key, $assoc_handle);
1429 $key = $this->dumb_key;
1431 $key = $this->normal_key;
1433 $this->store->removeAssociation($key, $assoc_handle);
1453 $cls = $this->responseFactory;
1488 $this->signatory = $signatory;
1502 if (!$this->signatory) {
1510 $response = $this->signatory->sign($response);
1526 $this->server = $server;
1528 $this->handlers = array(
1576 $handlerCls = Auth_OpenID::arrayGet($this->handlers, $mode,
1577 $this->defaultDecoder($message));
1581 array($message, $this->server));
1609 $this->response = $response;
1633 $this->return_to = $return_to;
1634 $this->trust_root = $trust_root;
1640 $this->return_to, $this->trust_root);
1684 $this->store = $store;
1685 $this->signatory = new Auth_OpenID_Signatory($this->store);
1686 $this->encoder = new Auth_OpenID_SigningEncoder($this->signatory);
1687 $this->decoder = new Auth_OpenID_Decoder($this);
1688 $this->op_endpoint = $op_endpoint;
1689 $this->negotiator = Auth_OpenID_getDefaultNegotiator();
1705 if (method_exists($this, "openid_" . $request->mode)) {
1706 $handler = array($this, "openid_" . $request->mode);
1717 return $request->answer($this->signatory);
1727 if ($this->negotiator->isAllowed($assoc_type, $session_type)) {
1728 $assoc = $this->signatory->createAssociation(false,
1735 $this->negotiator->getAllowedType();
1748 return $this->encoder->encode($response);
1761 return $this->decoder->decode($query);