swift
src
core
fsd
authchallenge.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (C) 2019 swift Project Community / Contributors
2
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
5
6
#ifndef SWIFT_CORE_FSD_AUTHCHALLENGE_H
7
#define SWIFT_CORE_FSD_AUTHCHALLENGE_H
8
9
#include "
core/fsd/messagebase.h
"
10
11
namespace
swift::core::fsd
12
{
14
class
SWIFT_CORE_EXPORT
AuthChallenge
:
public
MessageBase
15
{
16
public
:
18
AuthChallenge
(
const
QString &sender,
const
QString &target,
const
QString &challengeKey);
19
21
QStringList toTokens()
const
;
22
24
static
AuthChallenge
fromTokens(
const
QStringList &tokens);
25
27
static
QString
pdu
() {
return
QStringLiteral(
"$ZC"
); }
28
29
QString
m_challengeKey
;
30
31
private
:
33
AuthChallenge
();
34
};
35
37
inline
bool
operator==(
const
AuthChallenge
&lhs,
const
AuthChallenge
&rhs)
38
{
39
return
lhs.
sender
() == rhs.
sender
() && lhs.
receiver
() == rhs.
receiver
() &&
40
lhs.
m_challengeKey
== rhs.
m_challengeKey
;
41
}
42
44
inline
bool
operator!=
(
const
AuthChallenge
&lhs,
const
AuthChallenge
&rhs) {
return
!(lhs == rhs); }
45
}
// namespace swift::core::fsd
46
47
#endif
// SWIFT_CORE_FSD_AUTHCHALLENGE_H
swift::core::fsd::operator!=
bool operator!=(const AddAtc &lhs, const AddAtc &rhs)
Not equal operator.
Definition:
addatc.h:68
swift::core::fsd::AuthChallenge
FSD Message: auth challenge.
Definition:
authchallenge.h:15
swift::core::fsd::AuthChallenge::m_challengeKey
QString m_challengeKey
key
Definition:
authchallenge.h:29
swift::core::fsd::AuthChallenge::pdu
static QString pdu()
PDU identifier.
Definition:
authchallenge.h:27
swift::core::fsd::MessageBase
FSD message base class.
Definition:
messagebase.h:58
swift::core::fsd::MessageBase::sender
QString sender() const
get message sender
Definition:
messagebase.h:73
swift::core::fsd::MessageBase::receiver
QString receiver() const
Get message receiver.
Definition:
messagebase.h:79
messagebase.h
SWIFT_CORE_EXPORT
#define SWIFT_CORE_EXPORT
Export a class or function from the library.
Definition:
swiftcoreexport.h:20
Generated on Mon Mar 24 2025 16:42:19 for swift by
1.9.1