zmqpp
4.1.2
C++ bindings for 0mq (libzmq)
|
A class for working with ZAP requests and replies. More...
#include <zap_request.hpp>
Public Member Functions | |
zap_request (socket &handler, bool logging) | |
Receive a ZAP valid request from the handler socket. More... | |
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. More... | |
const std::string & | get_version () const |
Get Version. More... | |
const std::string & | get_domain () const |
Get Domain. More... | |
const std::string & | get_address () const |
Get Address. More... | |
const std::string & | get_identity () const |
Get Identity. More... | |
const std::string & | get_mechanism () const |
Get Security Mechanism. More... | |
const std::string & | get_username () const |
Get username for PLAIN security mechanism. More... | |
const std::string & | get_password () const |
Get password for PLAIN security mechanism. More... | |
const std::string & | get_client_key () const |
const std::string & | get_principal () const |
Get principal for GSSAPI security mechanism. More... | |
Private Member Functions | |
zap_request (zap_request const &) ZMQPP_EXPLICITLY_DELETED | |
zap_request & | operator= (zap_request const &) NOEXCEPT ZMQPP_EXPLICITLY_DELETED |
Private Attributes | |
socket & | zap_socket |
Socket we're talking to. More... | |
std::string | version |
Version number, must be "1.0". More... | |
std::string | sequence |
Sequence number of request. More... | |
std::string | domain |
Server socket domain. More... | |
std::string | address |
Client IP address. More... | |
std::string | identity |
Server socket idenntity. More... | |
std::string | mechanism |
Security mechansim. More... | |
std::string | username |
PLAIN user name. More... | |
std::string | password |
PLAIN password, in clear text. More... | |
std::string | client_key |
CURVE client public key in ASCII. More... | |
std::string | principal |
GSSAPI client principal. More... | |
bool | verbose |
Log ZAP requests and replies? More... | |
A class for working with ZAP requests and replies.
Used in auth to simplify working with RFC 27 messages.
zmqpp::zap_request::zap_request | ( | socket & | handler, |
bool | logging | ||
) |
Receive a ZAP valid request from the handler socket.
Receive a ZAP valid request from the handler socket
|
private |
|
inline |
Get Address.
|
inline |
Get client_key for CURVE security mechanism. The key is z85 encoded.
|
inline |
Get Domain.
|
inline |
Get Identity.
|
inline |
Get Security Mechanism.
|
inline |
Get password for PLAIN security mechanism.
|
inline |
Get principal for GSSAPI security mechanism.
|
inline |
Get username for PLAIN security mechanism.
|
inline |
Get Version.
|
private |
void zmqpp::zap_request::reply | ( | const std::string & | status_code, |
const std::string & | status_text, | ||
const std::string & | user_id | ||
) |
Send a ZAP reply to the handler socket.
Send a ZAP reply to the handler socket
|
private |
Client IP address.
|
private |
CURVE client public key in ASCII.
|
private |
Server socket domain.
|
private |
Server socket idenntity.
|
private |
Security mechansim.
|
private |
PLAIN password, in clear text.
|
private |
GSSAPI client principal.
|
private |
Sequence number of request.
|
private |
PLAIN user name.
|
private |
Log ZAP requests and replies?
|
private |
Version number, must be "1.0".
|
private |
Socket we're talking to.