GRPC Core  18.0.0
Public Member Functions | Protected Member Functions
grpc_channel_security_connector Class Referenceabstract

#include <security_connector.h>

Public Member Functions

 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)
 
 ~grpc_channel_security_connector () override
 
virtual bool check_call_host (absl::string_view host, grpc_auth_context *auth_context, grpc_closure *on_call_host_checked, grpc_error_handle *error)=0
 Checks that the host that will be set for a call is acceptable. More...
 
virtual void cancel_check_call_host (grpc_closure *on_call_host_checked, grpc_error_handle error)=0
 Cancels a pending asynchronous call to grpc_channel_security_connector_check_call_host() with on_call_host_checked as its callback. More...
 
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. More...
 
const grpc_channel_credentialschannel_creds () const
 
grpc_channel_credentialsmutable_channel_creds ()
 
const grpc_call_credentialsrequest_metadata_creds () const
 
grpc_call_credentialsmutable_request_metadata_creds ()
 
- Public Member Functions inherited from grpc_security_connector
 grpc_security_connector (const char *url_scheme)
 
 ~grpc_security_connector () override=default
 
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 void cancel_check_peer (grpc_closure *on_peer_checked, grpc_error_handle error)=0
 
virtual int cmp (const grpc_security_connector *other) const =0
 
const char * url_scheme () const
 
- Public Member Functions inherited from grpc_core::RefCounted< grpc_security_connector >
 ~RefCounted ()=default
 
RefCountedPtr< grpc_security_connectorRef () GRPC_MUST_USE_RESULT
 
RefCountedPtr< grpc_security_connectorRef (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
void Unref ()
 
void Unref (const DebugLocation &location, const char *reason)
 
RefCountedPtr< grpc_security_connectorRefIfNonZero () GRPC_MUST_USE_RESULT
 
RefCountedPtr< grpc_security_connectorRefIfNonZero (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
 RefCounted (const RefCounted &)=delete
 
RefCountedoperator= (const RefCounted &)=delete
 
- Public Member Functions inherited from grpc_core::PolymorphicRefCount
virtual ~PolymorphicRefCount ()=default
 

Protected Member Functions

int channel_security_connector_cmp (const grpc_channel_security_connector *other) const
 
- Protected Member Functions inherited from grpc_core::RefCounted< grpc_security_connector >
 RefCounted (const char *trace=nullptr, intptr_t initial_refcount=1)
 

Constructor & Destructor Documentation

◆ grpc_channel_security_connector()

grpc_channel_security_connector::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 
)

◆ ~grpc_channel_security_connector()

grpc_channel_security_connector::~grpc_channel_security_connector ( )
override

Member Function Documentation

◆ add_handshakers()

virtual void grpc_channel_security_connector::add_handshakers ( const grpc_channel_args args,
grpc_pollset_set interested_parties,
grpc_core::HandshakeManager handshake_mgr 
)
pure virtual

◆ cancel_check_call_host()

virtual void grpc_channel_security_connector::cancel_check_call_host ( grpc_closure on_call_host_checked,
grpc_error_handle  error 
)
pure virtual

Cancels a pending asynchronous call to grpc_channel_security_connector_check_call_host() with on_call_host_checked as its callback.

Implemented in grpc_core::TlsChannelSecurityConnector, grpc_core::InsecureChannelSecurityConnector, and grpc_httpcli_ssl_channel_security_connector.

◆ channel_creds()

const grpc_channel_credentials* grpc_channel_security_connector::channel_creds ( ) const
inline

◆ channel_security_connector_cmp()

int grpc_channel_security_connector::channel_security_connector_cmp ( const grpc_channel_security_connector other) const
protected

◆ check_call_host()

virtual bool grpc_channel_security_connector::check_call_host ( absl::string_view  host,
grpc_auth_context auth_context,
grpc_closure on_call_host_checked,
grpc_error_handle error 
)
pure virtual

Checks that the host that will be set for a call is acceptable.

Returns true if completed synchronously, in which case error will be set to indicate the result. Otherwise, on_call_host_checked will be invoked when complete.

Implemented in grpc_httpcli_ssl_channel_security_connector, grpc_core::TlsChannelSecurityConnector, and grpc_core::InsecureChannelSecurityConnector.

◆ mutable_channel_creds()

grpc_channel_credentials* grpc_channel_security_connector::mutable_channel_creds ( )
inline

◆ mutable_request_metadata_creds()

grpc_call_credentials* grpc_channel_security_connector::mutable_request_metadata_creds ( )
inline

◆ request_metadata_creds()

const grpc_call_credentials* grpc_channel_security_connector::request_metadata_creds ( ) const
inline

The documentation for this class was generated from the following files: