diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-11-20 22:28:29 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-11-20 22:28:29 (GMT) |
commit | 4e944a225d91ff4622e50186120ef0bbbb3a1d69 (patch) | |
tree | 2221e2ccdbaade17c419f45bfea139c3f952f85f /Swiften/Elements | |
parent | c84fb752cc881dfca9727b69fcdb3230830b7cc4 (diff) | |
download | swift-contrib-4e944a225d91ff4622e50186120ef0bbbb3a1d69.zip swift-contrib-4e944a225d91ff4622e50186120ef0bbbb3a1d69.tar.bz2 |
Added challenge & response parser & serializer.
Diffstat (limited to 'Swiften/Elements')
-rw-r--r-- | Swiften/Elements/AuthChallenge.h | 23 | ||||
-rw-r--r-- | Swiften/Elements/AuthResponse.h | 23 |
2 files changed, 46 insertions, 0 deletions
diff --git a/Swiften/Elements/AuthChallenge.h b/Swiften/Elements/AuthChallenge.h new file mode 100644 index 0000000..b8a9297 --- /dev/null +++ b/Swiften/Elements/AuthChallenge.h @@ -0,0 +1,23 @@ +#pragma once + +#include "Swiften/Base/ByteArray.h" +#include "Swiften/Elements/Element.h" + +namespace Swift { + class AuthChallenge : public Element { + public: + AuthChallenge(const ByteArray& value = "") : value(value) { + } + + const ByteArray& getValue() const { + return value; + } + + void setValue(const ByteArray& value) { + this->value = value; + } + + private: + ByteArray value; + }; +} diff --git a/Swiften/Elements/AuthResponse.h b/Swiften/Elements/AuthResponse.h new file mode 100644 index 0000000..8a0679f --- /dev/null +++ b/Swiften/Elements/AuthResponse.h @@ -0,0 +1,23 @@ +#pragma once + +#include "Swiften/Base/ByteArray.h" +#include "Swiften/Elements/Element.h" + +namespace Swift { + class AuthResponse : public Element { + public: + AuthResponse(const ByteArray& value = "") : value(value) { + } + + const ByteArray& getValue() const { + return value; + } + + void setValue(const ByteArray& value) { + this->value = value; + } + + private: + ByteArray value; + }; +} |