Lines Matching refs:this

139         $this->handle = $handle;
140 $this->secret = $secret;
141 $this->issued = $issued;
142 $this->lifetime = $lifetime;
143 $this->assoc_type = $assoc_type;
160 return max(0, $this->issued + $this->lifetime - $now);
173 return ((gettype($this) == gettype($other))
174 && ($this->handle == $other->handle)
175 && ($this->secret == $other->secret)
176 && ($this->issued == $other->issued)
177 && ($this->lifetime == $other->lifetime)
178 && ($this->assoc_type == $other->assoc_type));
191 'handle' => $this->handle,
192 'secret' => base64_encode($this->secret),
193 'issued' => strval(intval($this->issued)),
194 'lifetime' => strval(intval($this->lifetime)),
195 'assoc_type' => $this->assoc_type,
198 assert(array_keys($data) == $this->assoc_keys);
270 $callback = $this->_macs[$this->assoc_type];
272 return call_user_func_array($callback, [$this->secret, $kv]);
297 if ($extant_handle && ($extant_handle != $this->handle)) {
304 $this->handle);
321 $sig = $this->getMessageSignature($signed_message);
366 $pairs = $this->_makePairs($message);
367 return base64_encode($this->sign($pairs));
387 $calculated_sig = $this->getMessageSignature($message);
544 $this->allowed_types = [];
545 $this->setAllowedTypes($allowed_types);
565 $this->allowed_types = $allowed_types;
581 if ($this->allowed_types === null) {
582 $this->allowed_types = [];
593 $this->addAllowedType($assoc_type, $session_type);
597 $this->allowed_types[] = [$assoc_type, $session_type];
610 $this->allowed_types);
624 if (!$this->allowed_types) {
628 return $this->allowed_types[0];