#include <websocketticket.h>
|
std::string | mUsername = "" |
| Property: 'UserName'. More...
|
|
std::string | mPassword = "" |
| Property: 'Password'. More...
|
|
std::string | mID |
| Property: 'mID' unique name of the object. Used as an identifier by the system. More...
|
|
Created and issued by a nap::WebSocketServerEndPoint. A ticket is used by a server end-point to reject or accept a client connection request. For more information on authorization look refer to the nap::WebSocketServerEndPoint documentation.
◆ WebSocketTicket()
◆ fromBinaryString()
Creates a web-socket ticket based on a previously acquired binary string.
- Parameters
-
binaryString | the binary string representation of a ticket. |
result | contains the result of the de-serialization step. Ticket is destructed when results are out of scope. |
error | contains the error if conversion fails. |
- Returns
- the web-socket ticket, nullptr if conversion fails
◆ init()
Initialize this object after de-serialization
- Parameters
-
errorState | contains the error message when initialization fails |
Reimplemented from Object.
◆ toBinaryString()
Converts this ticket into a binary string representation.
- Parameters
-
outString | contains the result of the conversion |
error | contains the error if conversion fails. |
- Returns
- if conversion succeeded.
◆ toHash()
Creates a hash-able ticket based on the info in this ticket.
- Returns
- hashable ticket representation.
◆ mPassword
std::string mPassword = "" |
◆ mUsername
std::string mUsername = "" |