#ifndef CLIENTAUTHENTICATIONRESPONSEMESSAGE_H
#define CLIENTAUTHENTICATIONRESPONSEMESSAGE_H
#include "clientmessagebase.h"
#include <QByteArray>
#include <QDebug>

class ClientAuthenticationResponseMessage : public ClientMessageBase
{
public:
    ClientAuthenticationResponseMessage();

    void writeBytes( QIODevice *device ) const;
    void setChallenge( const QByteArray &challenge );
    void setPassword( const QByteArray &password );
    QByteArray challenge() const;
    QByteArray password() const;
    QByteArray hash() const;
private:
    mutable QByteArray m_challenge;
    mutable QByteArray m_password;
};
QDebug operator<<(QDebug in, ClientAuthenticationResponseMessage &message );

#endif // CLIENTAUTHENTICATIONRESPONSEMESSAGE_H

