Return the initial client message.

@return string  Initial client message.
355553
public function getClientFirstMessage()
    {
        /* n: client doesn't support channel binding,
         * <empty>,
         * n=<user>: SASLprepped username with "," and "=" escaped,
         * r=<nonce>: Random nonce */
        $this->_authmsg = 'n=' . str_replace(
            array(',', '='),
            array('=2C', '=3D'),
            $this->_user
        ) . ',r=' . $this->_nonce;

        return 'n,,' . $this->_authmsg;
    }
958467
protected function getMessages()
    {
        $msgs = array();
        // Read something.
        $read = @fread($this->socket, 65535);
        if ($read === false || @feof($this->socket)) {
            throw new ClientException('Error reading');
        }
        $this->currentProcessingMessage .= $read;
        // If we have a complete message, then return it. Save the rest for
        // later.
        while (($marker = strpos($this->currentProcessingMessage, Message::EOM))) {
            $msg = substr($this->currentProcessingMessage, 0, $marker);
            $this->currentProcessingMessage = substr(
                $this->currentProcessingMessage,
                $marker + strlen(Message::EOM)
            );
            $msgs[] = $msg;
        }
        return $msgs;
    }
433444
public function getOrigBody()
    {
        $_headers = $this->message->headers();
        $headers  = array();

        if ($_headers['Content-Transfer-Encoding']
            && stripos($_headers['Content-Type'], 'multipart') === false
        ) {
            $headers[] = 'Content-Transfer-Encoding: ' . $_headers['Content-Transfer-Encoding'];
        }
        $headers[] = 'Content-Type: ' . $_headers['Content-Type'];

        return implode("\r\n", $headers) . "\r\n\r\n" . $this->body;
    }
105692
public function getMessage()
    {
        if (!$this->message) {
            $this->message = new \wf\app\Message();
        }

        return $this->message;
    }
777395
public function getSuccessMessage()
    {
        $databaseConfig = $this->database->getConfig();
        $message = 'Database connection to host "%s" works as expected.';
        $message = sprintf($message, $databaseConfig['Host']);

        return $message;
    }
1278637
protected function getClient() {
        if ($this->client === null) {
            $this->client = new Client($this->getParam('accountId'), $this->getParam('applicationKey'));
        }

        return $this->client;
    }
1122635
public function getClientFinalMessage()
    {
        $final_msg = 'c=biws,r=' . $this->_nonce;

        /* Salted password. */
        $s_pass = strval(new Horde_Crypt_Blowfish_Pbkdf2(
            $this->_pass,
            strlen(hash($this->_hash, '', true)),
            array(
                'algo' => $this->_hash,
                'i_count' => $this->_iterations,
                'salt' => $this->_salt
            )
        ));

        /* Client key. */
        $c_key = hash_hmac($this->_hash, 'Client Key', $s_pass, true);

        /* Stored key. */
        $s_key = hash($this->_hash, $c_key, true);

        /* Client signature. */
        $auth_msg = $this->_authmsg . ',' . $final_msg;
        $c_sig = hash_hmac($this->_hash, $auth_msg, $s_key, true);

        /* Proof. */
        $proof = $c_key ^ $c_sig;

        /* Server signature. */
        $this->_serversig = hash_hmac(
            $this->_hash,
            $auth_msg,
            hash_hmac($this->_hash, 'Server Key', $s_pass, true),
            true
        );

        /* c=biws: channel-binding ("biws" = base64('n,,')),
         * p=<proof>: base64 encoded ClientProof,
         * r=<nonce>: Nonce as returned from the server. */
        return $final_msg . ',p=' . base64_encode($proof);
    }
1247586
public function getDefaultLine(): string
    {
        $messages = $this->getMessages();

        if (count($messages) == 0) {
            return '';
        }

        $who = $this->getWho() ?? Log::getWho();
        return "{$this->getTimeFormatted()}\t{$who}\t{$this->getLevel()}\t{$this->getMessage()}";
    }
88499
public function getMessageString()
    {
        $str = implode(' ', $this->header);
        if (count($this->structuredData)) {
            $str .= ' ' . implode('', $this->structuredData);
        } else {
            $str .= ' ' . self::NILVALUE;
        }
        $str .= ' ' . $this->msg;
        return $str;
    }
1223993
public function getMessage()
    {
        $result = $this->message;
        if ($result === '') {
            switch ($this->state) {
                case self::STATE_PASSED:
                case self::STATE_SKIPPED:
                    break;
                case self::STATE_WARNING:
                    $result = t('The installation precondition passed with warnings.');
                    break;
                case self::STATE_FAILED:
                default:
                    $result = t('The installation precondition failed.');
                    break;
            }
        }

        return $result;
    }
1010354
public function getMessage()
    {
        /** @noinspection IsEmptyFunctionUsageInspection */
        /** @noinspection PhpUndefinedMethodInspection */
        if (!empty(parent::getMessage())) {
            /** @noinspection PhpUndefinedMethodInspection */
            return parent::getMessage();
        }

        return $this->_storage->loadMessage(
            $this
        );
    }
1351140
public function getSwiftMessage()
    {
        $message = \Swift_Message::newInstance();

        if (true === is_array($this->getRecipient())) {
            $recipient = $this->getRecipient();
        } else {
            $recipient = [
                $this->getRecipient(),
            ];
        };

        $message
            ->setSubject($this->getSubject())
            ->setFrom(
                [
                    $this->getSender(),
                ]
            )
            ->setTo($recipient)
            ->setBody($this->getMessage());

        if (0 < count($this->getAttachments())) {
            foreach ($this->getAttachments() as $attachment) {
                $message->attach($attachment);
            }
        }

        return $message;
    }
1256950
public function getSentMIMEMessage()
    {
        return rtrim($this->MIMEHeader . $this->mailHeader, "\n\r") . static::$LE . static::$LE . $this->MIMEBody;
    }
403356
public function getUserMessage() {
        if (count($this->exceptions) == 1) {
            $e = reset($this->exceptions);
            return $e->getUserMessage();
        } else {
            return __('Invalid login or password. Please try again.');
        }
    }
750615
public function getSuccessMessage()
    {
        $message = 'Connection to Gerrit "%s" (v%s) via %s-DataService was successful and works as expected.';
        $message = sprintf($message, $this->dataService->getHost(), $this->version, $this->dataService->getName());

        return $message;
    }
1371076
private function getClient()
    {
        if ($this->client === null) {
            $this->client = new $this->clientClassName($this->config->hostname, [
                'credentials' => \Grpc\ChannelCredentials::createInsecure(),
            ]);
        }

        return $this->client;
    }
883517
public function getMessage()
    {
        $code = $this->getCode();

        if (!array_key_exists($code, $this->_messageMap))
            throw new Error("Unknown HTTP status code: $code");

        return $this->_messageMap[$code];
    }