private function _generateInitialResponse($authcid, $authzid)
    {
        $gs2_cbind_flag = 'n,'; // TODO: support channel binding.
        $this->gs2_header = $gs2_cbind_flag . (!empty($authzid)? 'a=' . $authzid : '') . ',';

        // I must generate a client nonce and "save" it for later comparison on second response.
        $this->cnonce = $this->_getCnonce();
        // XXX: in the future, when mandatory and/or optional extensions are defined in any updated RFC,
        // this message can be updated.
        $this->first_message_bare = 'n=' . $authcid . ',r=' . $this->cnonce;
        return $this->gs2_header . $this->first_message_bare;
    }
private function _generateInitialResponse($authcid, $authzid)
    {
        $gs2_cbind_flag = 'n,'; // TODO: support channel binding.
        $this->gs2_header = $gs2_cbind_flag . (!empty($authzid)? 'a=' . $authzid : '') . ',';

        // I must generate a client nonce and "save" it for later comparison on second response.
        $this->cnonce = $this->_getCnonce();
        // XXX: in the future, when mandatory and/or optional extensions are defined in any updated RFC,
        // this message can be updated.
        $this->first_message_bare = 'n=' . $authcid . ',r=' . $this->cnonce;
        return $this->gs2_header . $this->first_message_bare;
    }
private function _generateInitialResponse ( $ authcid , $ authzid ) { $ gs2_cbind_flag = 'n,' ; // TODO: support channel binding. $ this -> gs2_header = $ gs2_cbind_flag . ( ! empty ( $ authzid ) ? 'a=' . $ authzid : '' ) . ',' ; // I must generate a client nonce and "save" it for later comparison on second response. $ this -> cnonce = $ this -> _getCnonce ( ) ; // XXX: in the future, when mandatory and/or optional extensions are defined in any updated RFC, // this message can be updated. $ this -> first_message_bare = 'n=' . $ authcid . ',r=' . $ this -> cnonce ; return $ this -> gs2_header . $ this -> first_message_bare ; }
Generate the initial response which can be either sent directly in the first message or as a response to an empty
server challenge.

@param string $authcid Prepared authentication identity.
@param string $authzid Prepared authorization identity.
@return string The SCRAM response to send.
@access private
Generate the initial response which can be either sent directly in the first message or as a response to an empty server challenge .