QXmpp Version: 1.10.0
|
Stores different kinds of credentials used for authentication. More...
Public Member Functions | |
QXmppCredentials () | |
Default constructor. | |
void | toXml (QXmlStreamWriter &) const |
bool | operator== (const QXmppCredentials &other) const |
Comparison operator. | |
bool | operator!= (const QXmppCredentials &other) const =default |
Comparison operator. | |
Static Public Member Functions | |
static std::optional< QXmppCredentials > | fromXml (QXmlStreamReader &) |
Friends | |
class | QXmppConfiguration |
Stores different kinds of credentials used for authentication.
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:
|
static |
Tries to parse XML-serialized credentials.
void QXmppCredentials::toXml | ( | QXmlStreamWriter & | writer | ) | const |
Serializes the credentials to XML.