~ubuntu-branches/ubuntu/saucy/kopete/saucy-proposed

« back to all changes in this revision

Viewing changes to protocols/jabber/libiris/src/xmpp/sasl/digestmd5response.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-06-21 02:22:39 UTC
  • Revision ID: package-import@ubuntu.com-20130621022239-63l3zc8p0nf26pt6
Tags: upstream-4.10.80
ImportĀ upstreamĀ versionĀ 4.10.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2008  Remko Troncon
 
3
 *
 
4
 * This library is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU Lesser General Public
 
6
 * License as published by the Free Software Foundation; either
 
7
 * version 2.1 of the License, or (at your option) any later version.
 
8
 *
 
9
 * This library is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
 * Lesser General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU Lesser General Public
 
15
 * License along with this library; if not, write to the Free Software
 
16
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
17
 *
 
18
 */
 
19
 
 
20
#ifndef DIGESTMD5RESPONSE_H
 
21
#define DIGESTMD5RESPONSE_H
 
22
 
 
23
#include <QByteArray>
 
24
#include <QString>
 
25
 
 
26
namespace XMPP {
 
27
        class RandomNumberGenerator;
 
28
 
 
29
        class DIGESTMD5Response
 
30
        {
 
31
                public:
 
32
                        DIGESTMD5Response(
 
33
                                        const QByteArray& challenge, 
 
34
                                        const QString& service, 
 
35
                                        const QString& host, 
 
36
                                        const QString& realm, 
 
37
                                        const QString& user, 
 
38
                                        const QString& authz,  
 
39
                                        const QByteArray& password,
 
40
                                        const RandomNumberGenerator& rand);
 
41
 
 
42
                        const QByteArray& getValue() const { 
 
43
                                return value_;
 
44
                        }
 
45
 
 
46
                        bool isValid() const { 
 
47
                                return isValid_;
 
48
                        }
 
49
                
 
50
                private:
 
51
                        bool isValid_;
 
52
                        QByteArray value_;
 
53
        };
 
54
}
 
55
 
 
56
#endif