Lines Matching defs:message
28 public function encode(Message $message, SaslContext $context): string
30 if (!$message->has('authzid')) {
31 throw new SaslEncodingException('The PLAIN message must contain a authzid.');
33 if (!$message->has('authcid')) {
34 throw new SaslEncodingException('The PLAIN message must contain a authzid.');
36 if (!$message->has('password')) {
37 throw new SaslEncodingException('The PLAIN message must contain a password.');
39 $authzid = $this->validate($message->get('authzid'));
40 $authcid = $this->validate($message->get('authcid'));
41 $password = $this->validate($message->get('password'));
52 throw new SaslEncodingException('The PLAIN message data is malformed.');