QXmppCredentials Class
Stores different kinds of credentials used for authentication. More...
| Header: | #include <QXmppCredentials.h> |
| Since: | QXmpp 1.8 |
Public Functions
| QXmppCredentials() | |
| void | toXml(QXmlStreamWriter &writer) const |
| bool | operator!=(const QXmppCredentials &other) const |
| bool | operator==(const QXmppCredentials &other) const |
Static Public Members
| std::optional<QXmppCredentials> | fromXml(QXmlStreamReader &r) |
Detailed Description
QXmppCredentials can be serialized to XML and parsed from XML again. This can be useful to store credentials permanently without needing to handle all the details of the different authentication methods. QXmpp can for example request and use XEP-0484: Fast Authentication Streamlining Tokens tokens and might support other mechanisms in the future. The XML format is QXmpp specific and is not specified.
The XML output currently may contain:
- an HT token for XEP-0484: Fast Authentication Streamlining Tokens
Member Function Documentation
QXmppCredentials::QXmppCredentials()
Default constructor.
[static] std::optional<QXmppCredentials> QXmppCredentials::fromXml(QXmlStreamReader &r)
Tries to parse XML-serialized credentials.
r.
void QXmppCredentials::toXml(QXmlStreamWriter &writer) const
Serializes the credentials to XML.
writer.
[noexcept default] bool QXmppCredentials::operator!=(const QXmppCredentials &other) const
Returns true if this object and other are equal.
bool QXmppCredentials::operator==(const QXmppCredentials &other) const
Returns true if this object and other are equal.