Lines Matching defs:context
33 protected $context;
43 $this->context = new SaslContext();
44 $this->context->setIsServerMode($isServerMode);
52 $received = ($received === null) ? null : $this->encoder->decode($received, $this->context);
55 !$this->context->isServerMode() ? $this->context : $this->generateServerChallenge($options);
57 return $this->context;
60 if ($this->context->isServerMode()) {
66 return $this->context;
73 $this->context->setResponse($this->encoder->encode($challenge, $this->context));
74 $this->context->set('challenge', $challenge->get('challenge'));
76 return $this->context;
91 $this->context->setResponse($this->encoder->encode($response, $this->context));
92 $this->context->setIsComplete(true);
113 $expectedDigest = $password($username, $this->context->get('challenge'));
115 $this->context->setIsAuthenticated($expectedDigest === $digest);
116 $this->context->setIsComplete(true);