private function authenticateWithPassword()
{
if ($this->credentials->havePassword()) {
$authCommand = new Auth();
$authCommand->setArguments([$this->credentials->getPassword()]);
$authResponse = $this->connection->execute($authCommand);
$response = $authCommand->parse($authResponse);
if ($response !== self::AUTH_SUCCESS_MESSAGE) {
throw new AuthenticationException();
}
}
}