GRPC C++
1.26.0
|
TLS server authorization check arguments, wraps grpc_tls_server_authorization_check_arg. More...
#include <tls_credentials_options.h>
Public Member Functions | |
TlsServerAuthorizationCheckArg (grpc_tls_server_authorization_check_arg *arg) | |
TlsServerAuthorizationCheckArg does not take ownership of the C arg passed to the constructor. More... | |
~TlsServerAuthorizationCheckArg () | |
void * | cb_user_data () const |
Getters for member fields. More... | |
int | success () const |
grpc::string | target_name () const |
grpc::string | peer_cert () const |
grpc_status_code | status () const |
grpc::string | error_details () const |
void | set_cb_user_data (void *cb_user_data) |
Setters for member fields. More... | |
void | set_success (int success) |
void | set_target_name (const grpc::string &target_name) |
void | set_peer_cert (const grpc::string &peer_cert) |
void | set_status (grpc_status_code status) |
void | set_error_details (const grpc::string &error_details) |
void | OnServerAuthorizationCheckDoneCallback () |
Calls the C arg's callback function. More... | |
TLS server authorization check arguments, wraps grpc_tls_server_authorization_check_arg.
It is used for experimental purposes for now and it is subject to change.
The server authorization check arg contains all the info necessary to schedule/cancel a server authorization check request. The callback function must be called after finishing the schedule operation. See the description of the grpc_tls_server_authorization_check_arg struct in grpc_security.h for more details.
grpc_impl::experimental::TlsServerAuthorizationCheckArg::TlsServerAuthorizationCheckArg | ( | grpc_tls_server_authorization_check_arg * | arg | ) |
TlsServerAuthorizationCheckArg does not take ownership of the C arg passed to the constructor.
One must remember to free any memory allocated to the C arg after using the setter functions below.
grpc_impl::experimental::TlsServerAuthorizationCheckArg::~TlsServerAuthorizationCheckArg | ( | ) |
void* grpc_impl::experimental::TlsServerAuthorizationCheckArg::cb_user_data | ( | ) | const |
Getters for member fields.
They return the corresponding fields of the underlying C arg.
grpc::string grpc_impl::experimental::TlsServerAuthorizationCheckArg::error_details | ( | ) | const |
void grpc_impl::experimental::TlsServerAuthorizationCheckArg::OnServerAuthorizationCheckDoneCallback | ( | ) |
Calls the C arg's callback function.
grpc::string grpc_impl::experimental::TlsServerAuthorizationCheckArg::peer_cert | ( | ) | const |
void grpc_impl::experimental::TlsServerAuthorizationCheckArg::set_cb_user_data | ( | void * | cb_user_data | ) |
Setters for member fields.
They modify the fields of the underlying C arg. The setters for target_name, peer_cert, and error_details allocate memory when modifying c_arg_, so one must remember to free c_arg_'s original target_name, peer_cert, or error_details after using the appropriate setter function.
void grpc_impl::experimental::TlsServerAuthorizationCheckArg::set_error_details | ( | const grpc::string & | error_details | ) |
void grpc_impl::experimental::TlsServerAuthorizationCheckArg::set_peer_cert | ( | const grpc::string & | peer_cert | ) |
void grpc_impl::experimental::TlsServerAuthorizationCheckArg::set_status | ( | grpc_status_code | status | ) |
void grpc_impl::experimental::TlsServerAuthorizationCheckArg::set_success | ( | int | success | ) |
void grpc_impl::experimental::TlsServerAuthorizationCheckArg::set_target_name | ( | const grpc::string & | target_name | ) |
grpc_status_code grpc_impl::experimental::TlsServerAuthorizationCheckArg::status | ( | ) | const |
int grpc_impl::experimental::TlsServerAuthorizationCheckArg::success | ( | ) | const |
grpc::string grpc_impl::experimental::TlsServerAuthorizationCheckArg::target_name | ( | ) | const |