17 #ifndef ZMQPP_ZAP_REQUEST_HPP_
18 #define ZMQPP_ZAP_REQUEST_HPP_
23 #if (ZMQ_VERSION_MAJOR > 3)
43 void reply(
const std::string &status_code,
const std::string &status_text,
44 const std::string &user_id);
const std::string & get_principal() const
Get principal for GSSAPI security mechanism.
Definition: zap_request.hpp:106
const std::string & get_identity() const
Get Identity.
Definition: zap_request.hpp:70
A class for working with ZAP requests and replies.
Definition: zap_request.hpp:33
#define ZMQPP_EXPLICITLY_DELETED
Definition: compatibility.hpp:100
C++ wrapper around zmq.
Definition: actor.cpp:29
bool verbose
Log ZAP requests and replies?
Definition: zap_request.hpp:122
The socket class represents the zmq sockets.
Definition: socket.hpp:75
std::string principal
GSSAPI client principal.
Definition: zap_request.hpp:121
const std::string & get_mechanism() const
Get Security Mechanism.
Definition: zap_request.hpp:77
const std::string & get_password() const
Get password for PLAIN security mechanism.
Definition: zap_request.hpp:91
const std::string & get_version() const
Get Version.
Definition: zap_request.hpp:49
std::string version
Version number, must be "1.0".
Definition: zap_request.hpp:112
void reply(const std::string &status_code, const std::string &status_text, const std::string &user_id)
Send a ZAP reply to the handler socket.
Definition: zap_request.cpp:72
#define NOEXCEPT
Definition: compatibility.hpp:104
std::string domain
Server socket domain.
Definition: zap_request.hpp:114
const std::string & get_domain() const
Get Domain.
Definition: zap_request.hpp:56
const std::string & get_username() const
Get username for PLAIN security mechanism.
Definition: zap_request.hpp:84
std::string address
Client IP address.
Definition: zap_request.hpp:115
std::string identity
Server socket idenntity.
Definition: zap_request.hpp:116
socket & zap_socket
Socket we're talking to.
Definition: zap_request.hpp:111
std::string mechanism
Security mechansim.
Definition: zap_request.hpp:117
std::string sequence
Sequence number of request.
Definition: zap_request.hpp:113
zap_request(socket &handler, bool logging)
Receive a ZAP valid request from the handler socket.
Definition: zap_request.cpp:30
std::string password
PLAIN password, in clear text.
Definition: zap_request.hpp:119
std::string client_key
CURVE client public key in ASCII.
Definition: zap_request.hpp:120
std::string username
PLAIN user name.
Definition: zap_request.hpp:118
const std::string & get_address() const
Get Address.
Definition: zap_request.hpp:63
const std::string & get_client_key() const
Definition: zap_request.hpp:99