19 #ifndef GRPC_CORE_LIB_SECURITY_SECURITY_CONNECTOR_SECURITY_CONNECTOR_H
20 #define GRPC_CORE_LIB_SECURITY_SECURITY_CONNECTOR_SECURITY_CONNECTOR_H
45 #define GRPC_ARG_SECURITY_CONNECTOR "grpc.security_connector"
69 const char* url_scheme_;
116 return channel_creds_.
get();
119 return channel_creds_.
get();
122 return request_metadata_creds_.
get();
125 return request_metadata_creds_.
get();
141 std::unique_ptr<grpc_channel_args> channel_args_;
161 return server_creds_.
get();
164 return server_creds_.
get();
Definition: security_connector.h:87
virtual void cancel_check_call_host(grpc_closure *on_call_host_checked, grpc_error *error)=0
Cancels a pending asynchronous call to grpc_channel_security_connector_check_call_host() with on_call...
grpc_channel_credentials * mutable_channel_creds()
Definition: security_connector.h:118
grpc_channel_security_connector(const char *url_scheme, grpc_core::RefCountedPtr< grpc_channel_credentials > channel_creds, grpc_core::RefCountedPtr< grpc_call_credentials > request_metadata_creds)
Definition: security_connector.cc:49
virtual void add_handshakers(const grpc_channel_args *args, grpc_pollset_set *interested_parties, grpc_core::HandshakeManager *handshake_mgr)=0
Registers handshakers with handshake_mgr.
grpc_call_credentials * mutable_request_metadata_creds()
Definition: security_connector.h:124
const grpc_call_credentials * request_metadata_creds() const
Definition: security_connector.h:121
~grpc_channel_security_connector() override
Definition: security_connector.cc:57
const grpc_channel_credentials * channel_creds() const
Definition: security_connector.h:115
virtual bool check_call_host(grpc_core::StringView host, grpc_auth_context *auth_context, grpc_closure *on_call_host_checked, grpc_error **error)=0
Checks that the host that will be set for a call is acceptable.
int channel_security_connector_cmp(const grpc_channel_security_connector *other) const
Definition: security_connector.cc:65
Definition: handshaker.h:91
Definition: ref_counted.h:248
RefCounted(const RefCounted &)=delete
T * get() const
Definition: ref_counted_ptr.h:144
Definition: string_view.h:69
Definition: security_connector.h:48
const char * url_scheme() const
Definition: security_connector.h:66
grpc_security_connector(const char *url_scheme)
Definition: security_connector.h:50
virtual void check_peer(tsi_peer peer, grpc_endpoint *ep, grpc_core::RefCountedPtr< grpc_auth_context > *auth_context, grpc_closure *on_peer_checked)=0
virtual int cmp(const grpc_security_connector *other) const =0
virtual ~grpc_security_connector()=default
Definition: security_connector.h:149
int server_security_connector_cmp(const grpc_server_security_connector *other) const
Definition: security_connector.cc:76
grpc_server_security_connector(const char *url_scheme, grpc_core::RefCountedPtr< grpc_server_credentials > server_creds)
Definition: security_connector.cc:43
const grpc_server_credentials * server_creds() const
Definition: security_connector.h:160
grpc_server_credentials * mutable_server_creds()
Definition: security_connector.h:163
virtual void add_handshakers(const grpc_channel_args *args, grpc_pollset_set *interested_parties, grpc_core::HandshakeManager *handshake_mgr)=0
~grpc_server_security_connector() override=default
Round Robin Policy.
Definition: backend_metric.cc:24
struct grpc_pollset_set grpc_pollset_set
Definition: pollset_set.h:31
grpc_security_connector * grpc_security_connector_find_in_args(const grpc_channel_args *args)
Definition: security_connector.cc:119
grpc_security_status
Definition: security_connector.h:38
@ GRPC_SECURITY_ERROR
Definition: security_connector.h:38
@ GRPC_SECURITY_OK
Definition: security_connector.h:38
grpc_core::DebugOnlyTraceFlag grpc_trace_security_connector_refcount
grpc_security_connector * grpc_security_connector_from_arg(const grpc_arg *arg)
Definition: security_connector.cc:109
grpc_arg grpc_security_connector_to_arg(grpc_security_connector *sc)
Definition: security_connector.cc:104
A single argument...
Definition: grpc_types.h:103
Definition: security_context.h:51
Definition: credentials.h:226
An array of arguments that can be passed around.
Definition: grpc_types.h:132
Definition: credentials.h:100
A closure over a grpc_iomgr_cb_func.
Definition: closure.h:56
Definition: endpoint.h:102
Definition: error_internal.h:39
Definition: credentials.h:264
Definition: transport_security_interface.h:198