GRPC C++  1.39.1
Data Structures | Public Member Functions | Static Public Member Functions
grpc_core::TlsChannelSecurityConnector Class Referencefinal

#include <tls_security_connector.h>

Public Member Functions

 TlsChannelSecurityConnector (RefCountedPtr< grpc_channel_credentials > channel_creds, RefCountedPtr< grpc_tls_credentials_options > options, RefCountedPtr< grpc_call_credentials > request_metadata_creds, const char *target_name, const char *overridden_target_name, tsi_ssl_session_cache *ssl_session_cache)
 
 ~TlsChannelSecurityConnector () override
 
void add_handshakers (const grpc_channel_args *args, grpc_pollset_set *interested_parties, HandshakeManager *handshake_mgr) override
 Registers handshakers with handshake_mgr. More...
 
void check_peer (tsi_peer peer, grpc_endpoint *ep, RefCountedPtr< grpc_auth_context > *auth_context, grpc_closure *on_peer_checked) override
 
void cancel_check_peer (grpc_closure *, grpc_error_handle error) override
 
int cmp (const grpc_security_connector *other_sc) const override
 
bool check_call_host (absl::string_view host, grpc_auth_context *auth_context, grpc_closure *on_call_host_checked, grpc_error_handle *error) override
 Checks that the host that will be set for a call is acceptable. More...
 
void cancel_check_call_host (grpc_closure *on_call_host_checked, grpc_error_handle error) override
 Cancels a pending asynchronous call to grpc_channel_security_connector_check_call_host() with on_call_host_checked as its callback. More...
 
tsi_ssl_client_handshaker_factoryClientHandshakerFactoryForTesting ()
 
absl::optional< absl::string_view > RootCertsForTesting ()
 
absl::optional< PemKeyCertPairListKeyCertPairListForTesting ()
 
- Public Member Functions inherited from 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 () override
 
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
 
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
 

Static Public Member Functions

static RefCountedPtr< grpc_channel_security_connectorCreateTlsChannelSecurityConnector (RefCountedPtr< grpc_channel_credentials > channel_creds, RefCountedPtr< grpc_tls_credentials_options > options, RefCountedPtr< grpc_call_credentials > request_metadata_creds, const char *target_name, const char *overridden_target_name, tsi_ssl_session_cache *ssl_session_cache)
 

Additional Inherited Members

- Protected Member Functions inherited from grpc_channel_security_connector
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

◆ TlsChannelSecurityConnector()

grpc_core::TlsChannelSecurityConnector::TlsChannelSecurityConnector ( RefCountedPtr< grpc_channel_credentials channel_creds,
RefCountedPtr< grpc_tls_credentials_options options,
RefCountedPtr< grpc_call_credentials request_metadata_creds,
const char *  target_name,
const char *  overridden_target_name,
tsi_ssl_session_cache ssl_session_cache 
)

◆ ~TlsChannelSecurityConnector()

grpc_core::TlsChannelSecurityConnector::~TlsChannelSecurityConnector ( )
override

Member Function Documentation

◆ add_handshakers()

void grpc_core::TlsChannelSecurityConnector::add_handshakers ( const grpc_channel_args args,
grpc_pollset_set interested_parties,
HandshakeManager handshake_mgr 
)
overridevirtual

Registers handshakers with handshake_mgr.

Implements grpc_channel_security_connector.

◆ cancel_check_call_host()

void grpc_core::TlsChannelSecurityConnector::cancel_check_call_host ( grpc_closure on_call_host_checked,
grpc_error_handle  error 
)
overridevirtual

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

Implements grpc_channel_security_connector.

◆ cancel_check_peer()

void grpc_core::TlsChannelSecurityConnector::cancel_check_peer ( grpc_closure ,
grpc_error_handle  error 
)
inlineoverridevirtual

◆ check_call_host()

bool grpc_core::TlsChannelSecurityConnector::check_call_host ( absl::string_view  host,
grpc_auth_context auth_context,
grpc_closure on_call_host_checked,
grpc_error_handle error 
)
overridevirtual

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.

Implements grpc_channel_security_connector.

◆ check_peer()

void grpc_core::TlsChannelSecurityConnector::check_peer ( tsi_peer  peer,
grpc_endpoint ep,
RefCountedPtr< grpc_auth_context > *  auth_context,
grpc_closure on_peer_checked 
)
overridevirtual

◆ ClientHandshakerFactoryForTesting()

tsi_ssl_client_handshaker_factory* grpc_core::TlsChannelSecurityConnector::ClientHandshakerFactoryForTesting ( )
inline

◆ cmp()

int grpc_core::TlsChannelSecurityConnector::cmp ( const grpc_security_connector other_sc) const
overridevirtual

◆ CreateTlsChannelSecurityConnector()

RefCountedPtr< grpc_channel_security_connector > grpc_core::TlsChannelSecurityConnector::CreateTlsChannelSecurityConnector ( RefCountedPtr< grpc_channel_credentials channel_creds,
RefCountedPtr< grpc_tls_credentials_options options,
RefCountedPtr< grpc_call_credentials request_metadata_creds,
const char *  target_name,
const char *  overridden_target_name,
tsi_ssl_session_cache ssl_session_cache 
)
static

◆ KeyCertPairListForTesting()

absl::optional<PemKeyCertPairList> grpc_core::TlsChannelSecurityConnector::KeyCertPairListForTesting ( )
inline

◆ RootCertsForTesting()

absl::optional<absl::string_view> grpc_core::TlsChannelSecurityConnector::RootCertsForTesting ( )
inline

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