aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppSaslAuth.h
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2012-07-20 17:37:38 +0200
committerJeremy Lainé <jeremy.laine@m4x.org>2012-07-20 17:37:38 +0200
commit51eef84fd4104f19228ebd85fce89658b64464a2 (patch)
tree31db52023ae0a063714140897bcbbfb6010ba04a /src/base/QXmppSaslAuth.h
parentdb4fe78387247ff039602030d964e4c0d6e39f46 (diff)
downloadqxmpp-51eef84fd4104f19228ebd85fce89658b64464a2.tar.gz
make SASL code fully private
Diffstat (limited to 'src/base/QXmppSaslAuth.h')
-rw-r--r--src/base/QXmppSaslAuth.h102
1 files changed, 0 insertions, 102 deletions
diff --git a/src/base/QXmppSaslAuth.h b/src/base/QXmppSaslAuth.h
deleted file mode 100644
index f436cdf3..00000000
--- a/src/base/QXmppSaslAuth.h
+++ /dev/null
@@ -1,102 +0,0 @@
-/*
- * Copyright (C) 2008-2012 The QXmpp developers
- *
- * Authors:
- * Manjeet Dahiya
- * Jeremy Lainé
- *
- * Source:
- * http://code.google.com/p/qxmpp
- *
- * This file is a part of QXmpp library.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- */
-
-#ifndef QXMPPSASLAUTH_H
-#define QXMPPSASLAUTH_H
-
-#include "QXmppGlobal.h"
-#include "QXmppLogger.h"
-
-class QXmppSaslClientPrivate;
-class QXmppSaslServerPrivate;
-
-/// The QXmppSaslClient class is the base class for all SASL client
-/// authentication methods.
-
-class QXMPP_EXPORT QXmppSaslClient : public QXmppLoggable
-{
-public:
- QXmppSaslClient(QObject *parent = 0);
- virtual ~QXmppSaslClient();
-
- QString host() const;
- void setHost(const QString &host);
-
- QString serviceType() const;
- void setServiceType(const QString &serviceType);
-
- QString username() const;
- void setUsername(const QString &username);
-
- QString password() const;
- void setPassword(const QString &password);
-
- virtual QString mechanism() const = 0;
- virtual bool respond(const QByteArray &challenge, QByteArray &response) = 0;
-
- static QStringList availableMechanisms();
- static QXmppSaslClient* create(const QString &mechanism, QObject *parent = 0);
-
-private:
- QXmppSaslClientPrivate *d;
-};
-
-/// The QXmppServerClient class is the base class for all SASL server
-/// authentication methods.
-
-class QXMPP_EXPORT QXmppSaslServer : public QXmppLoggable
-{
-public:
- enum Response {
- Challenge = 0,
- Succeeded = 1,
- Failed = 2,
- InputNeeded = 3
- };
-
- QXmppSaslServer(QObject *parent = 0);
- virtual ~QXmppSaslServer();
-
- QString username() const;
- void setUsername(const QString &username);
-
- QString password() const;
- void setPassword(const QString &password);
-
- QByteArray passwordDigest() const;
- void setPasswordDigest(const QByteArray &digest);
-
- QString realm() const;
- void setRealm(const QString &realm);
-
- virtual QString mechanism() const = 0;
- virtual Response respond(const QByteArray &challenge, QByteArray &response) = 0;
-
- static QXmppSaslServer* create(const QString &mechanism, QObject *parent = 0);
-
-private:
- QXmppSaslServerPrivate *d;
-};
-
-#endif