| 1 | <?php |
||
| 5 | class AuthResponse extends Request{ |
||
| 6 | |||
| 7 | protected $opcode = Frame::OPCODE_AUTH_RESPONSE; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | protected $_username; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $_password; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * CREDENTIALS |
||
| 23 | * |
||
| 24 | * Provides credentials information for the purpose of identification. This |
||
| 25 | * message comes as a response to an AUTHENTICATE message from the server, but |
||
| 26 | * can be use later in the communication to change the authentication |
||
| 27 | * information. |
||
| 28 | * |
||
| 29 | * The body is a list of key/value informations. It is a [short] n, followed by n |
||
| 30 | * pair of [string]. These key/value pairs are passed as is to the Cassandra |
||
| 31 | * IAuthenticator and thus the detail of which informations is needed depends on |
||
| 32 | * that authenticator. |
||
| 33 | * |
||
| 34 | * The response to a CREDENTIALS is a READY message (or an ERROR message). |
||
| 35 | * |
||
| 36 | * @param string $username |
||
| 37 | * @param string $password |
||
| 38 | */ |
||
| 39 | public function __construct($username, $password) { |
||
| 43 | |||
| 44 | public function getBody(){ |
||
| 52 | |||
| 53 | } |
||
| 54 |