GRPC Core  9.0.0
Public Member Functions | Static Public Member Functions
grpc_core::SpiffeChannelSecurityConnector Class Referencefinal

#include <spiffe_security_connector.h>

Public Member Functions

 SpiffeChannelSecurityConnector (grpc_core::RefCountedPtr< grpc_channel_credentials > channel_creds, grpc_core::RefCountedPtr< grpc_call_credentials > request_metadata_creds, const char *target_name, const char *overridden_target_name)
 
 ~SpiffeChannelSecurityConnector () override
 
void add_handshakers (const grpc_channel_args *args, grpc_pollset_set *interested_parties, grpc_core::HandshakeManager *handshake_mgr) override
 Registers handshakers with handshake_mgr. More...
 
void check_peer (tsi_peer peer, grpc_endpoint *ep, grpc_core::RefCountedPtr< grpc_auth_context > *auth_context, grpc_closure *on_peer_checked) override
 
int cmp (const grpc_security_connector *other_sc) const override
 
bool check_call_host (grpc_core::StringView host, grpc_auth_context *auth_context, grpc_closure *on_call_host_checked, grpc_error **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 *error) override
 Cancels a pending asynchronous call to grpc_channel_security_connector_check_call_host() with on_call_host_checked as its callback. More...
 
- 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)
 
virtual ~grpc_security_connector ()=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)
 
bool RefIfNonZero ()
 
bool RefIfNonZero (const DebugLocation &location, const char *reason)
 
 RefCounted (const RefCounted &)=delete
 
RefCountedoperator= (const RefCounted &)=delete
 
- Public Member Functions inherited from grpc_core::PolymorphicRefCount
virtual ~PolymorphicRefCount ()=default
 

Static Public Member Functions

static grpc_core::RefCountedPtr< grpc_channel_security_connectorCreateSpiffeChannelSecurityConnector (grpc_core::RefCountedPtr< grpc_channel_credentials > channel_creds, grpc_core::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 (TraceFlagT *trace_flag=nullptr, intptr_t initial_refcount=1)
 

Constructor & Destructor Documentation

◆ SpiffeChannelSecurityConnector()

grpc_core::SpiffeChannelSecurityConnector::SpiffeChannelSecurityConnector ( grpc_core::RefCountedPtr< grpc_channel_credentials channel_creds,
grpc_core::RefCountedPtr< grpc_call_credentials request_metadata_creds,
const char *  target_name,
const char *  overridden_target_name 
)

◆ ~SpiffeChannelSecurityConnector()

grpc_core::SpiffeChannelSecurityConnector::~SpiffeChannelSecurityConnector ( )
override

Member Function Documentation

◆ add_handshakers()

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

Registers handshakers with handshake_mgr.

Implements grpc_channel_security_connector.

◆ cancel_check_call_host()

void grpc_core::SpiffeChannelSecurityConnector::cancel_check_call_host ( grpc_closure on_call_host_checked,
grpc_error 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.

◆ check_call_host()

bool grpc_core::SpiffeChannelSecurityConnector::check_call_host ( grpc_core::StringView  host,
grpc_auth_context auth_context,
grpc_closure on_call_host_checked,
grpc_error **  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::SpiffeChannelSecurityConnector::check_peer ( tsi_peer  peer,
grpc_endpoint ep,
grpc_core::RefCountedPtr< grpc_auth_context > *  auth_context,
grpc_closure on_peer_checked 
)
overridevirtual

◆ cmp()

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

◆ CreateSpiffeChannelSecurityConnector()

grpc_core::RefCountedPtr< grpc_channel_security_connector > grpc_core::SpiffeChannelSecurityConnector::CreateSpiffeChannelSecurityConnector ( grpc_core::RefCountedPtr< grpc_channel_credentials channel_creds,
grpc_core::RefCountedPtr< grpc_call_credentials request_metadata_creds,
const char *  target_name,
const char *  overridden_target_name,
tsi_ssl_session_cache ssl_session_cache 
)
static

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