Lines Matching defs:context

41     protected $context;
62 $this->context = new SaslContext();
63 $this->context->setIsServerMode($isServerMode);
73 $received = $received === null ? null : $this->encoder->decode($received, $this->context);
74 if ($this->context->isServerMode()) {
79 $this->context->setResponse($response);
81 return $this->context;
96 if ($message->has('rspauth') && $this->context->get('verification') === null) {
99 if ($message->has('rspauth') && $message->get('rspauth') === $this->context->get('verification')) {
100 $this->context->setIsAuthenticated(true);
101 $this->context->setHasSecurityLayer($options['use_integrity'] || $options['use_privacy']);
103 if ($this->context->hasSecurityLayer()) {
104 $this->context->set('seqnumsnt', 0);
105 $this->context->set('seqnumrcv', 0);
107 $this->context->setIsComplete($message->has('rspauth'));
120 return $response === null ? null : $this->encoder->encode($response, $this->context);
125 if ($this->context->isServerMode()) {
140 $this->context->set('qop', 'auth-conf');
142 $this->context->set('qop', 'auth-int');
144 $this->context->set('qop', 'auth');
150 'qop' => $this->context->get('qop'),
170 $this->context->isServerMode()
174 $this->context->set(
180 !$this->context->isServerMode()
186 $this->context->set('a1', hex2bin(DigestMD5Mechanism::computeA1($password, $message, $response)));
187 $this->context->set('cipher', $response->get('cipher'));
190 return $this->encoder->encode($response, $this->context);
195 $this->context->setIsComplete(true);
234 $this->context->setIsAuthenticated(true);
236 $this->context->setHasSecurityLayer(true);
237 $this->context->set('a1', hex2bin(DigestMD5Mechanism::computeA1($password, $this->challenge, $received)));
238 $this->context->set('cipher', $received->get('cipher'));
239 $this->context->set('seqnumsnt', 0);
240 $this->context->set('seqnumrcv', 0);