The QXmppStartTlsPacket represents packets used for initiating STARTTLS negotiation when connecting.
More...
#include <QXmppStartTlsPacket.h>
The QXmppStartTlsPacket represents packets used for initiating STARTTLS negotiation when connecting.
- Deprecated:
- STARTTLS packets will be removed from the public API.
◆ Type
The type of the STARTTLS packet.
Enumerator |
---|
StartTls | Used by the client to initiate STARTTLS.
|
Proceed | Used by the server to accept STARTTLS.
|
Failure | Used by the server to reject STARTTLS.
|
Invalid | Invalid type.
|
◆ QXmppStartTlsPacket()
QXmppStartTlsPacket::QXmppStartTlsPacket |
( |
Type |
type = StartTls | ) |
|
◆ isStartTlsPacket() [1/2]
bool QXmppStartTlsPacket::isStartTlsPacket |
( |
const QDomElement & |
element | ) |
|
|
static |
Checks whether the given element
is a STARTTLS packet according to RFC6120.
- Parameters
-
element | The element that should be checked for being a STARTTLS packet. |
- Returns
- True, if the element is a STARTTLS packet.
◆ isStartTlsPacket() [2/2]
bool QXmppStartTlsPacket::isStartTlsPacket |
( |
const QDomElement & |
element, |
|
|
Type |
type |
|
) |
| |
|
static |
Checks whether the given element
is a STARTTLS packet according to RFC6120 and has the correct type.
- Parameters
-
element | The element that should be checked for being a STARTTLS packet. |
type | The type the element needs to have. |
- Returns
- True, if the element is a STARTTLS packet and has the correct type.
The documentation for this class was generated from the following files: