Public Member Functions | Protected Member Functions | Private Attributes | List of all members
grpc_channel_security_connector Class Referenceabstract

#include <security_connector.h>

Inheritance diagram for grpc_channel_security_connector:
Inheritance graph
[legend]

Public Member Functions

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
 
virtual grpc_core::ArenaPromise< absl::StatusCheckCallHost (absl::string_view host, grpc_auth_context *auth_context)=0
 
 grpc_channel_security_connector (absl::string_view url_scheme, grpc_core::RefCountedPtr< grpc_channel_credentials > channel_creds, grpc_core::RefCountedPtr< grpc_call_credentials > request_metadata_creds)
 
grpc_channel_credentialsmutable_channel_creds ()
 
grpc_call_credentialsmutable_request_metadata_creds ()
 
const grpc_call_credentialsrequest_metadata_creds () const
 
grpc_core::UniqueTypeName type () const override
 
- Public Member Functions inherited from grpc_security_connector
virtual void cancel_check_peer (grpc_closure *on_peer_checked, grpc_error_handle error)=0
 
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
 
 grpc_security_connector (absl::string_view url_scheme)
 
absl::string_view url_scheme () const
 
- Public Member Functions inherited from grpc_core::RefCounted< grpc_security_connector >
RefCountedoperator= (const RefCounted &)=delete
 
RefCountedPtr< grpc_security_connectorRef () GRPC_MUST_USE_RESULT
 
RefCountedPtr< grpc_security_connectorRef (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
 RefCounted (const RefCounted &)=delete
 
RefCountedPtr< grpc_security_connectorRefIfNonZero () GRPC_MUST_USE_RESULT
 
RefCountedPtr< grpc_security_connectorRefIfNonZero (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
void Unref ()
 
void Unref (const DebugLocation &location, const char *reason)
 
 ~RefCounted ()=default
 
- 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)
 

Private Attributes

std::unique_ptr< grpc_channel_argschannel_args_
 
grpc_core::RefCountedPtr< grpc_channel_credentialschannel_creds_
 
grpc_core::RefCountedPtr< grpc_call_credentialsrequest_metadata_creds_
 

Additional Inherited Members

- Public Types inherited from grpc_core::RefCounted< grpc_security_connector >
using RefCountedChildType = grpc_security_connector
 
- Static Public Member Functions inherited from grpc_security_connector
static absl::string_view ChannelArgName ()
 
static int ChannelArgsCompare (const grpc_security_connector *a, const grpc_security_connector *b)
 

Detailed Description

Definition at line 118 of file security_connector.h.

Constructor & Destructor Documentation

◆ grpc_channel_security_connector()

grpc_channel_security_connector::grpc_channel_security_connector ( absl::string_view  url_scheme,
grpc_core::RefCountedPtr< grpc_channel_credentials channel_creds,
grpc_core::RefCountedPtr< grpc_call_credentials request_metadata_creds 
)

Definition at line 37 of file security_connector.cc.

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

Registers handshakers with handshake_mgr.

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

◆ channel_creds()

const grpc_channel_credentials* grpc_channel_security_connector::channel_creds ( ) const
inline

Definition at line 135 of file security_connector.h.

◆ channel_security_connector_cmp()

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

Definition at line 45 of file security_connector.cc.

◆ CheckCallHost()

virtual grpc_core::ArenaPromise<absl::Status> grpc_channel_security_connector::CheckCallHost ( absl::string_view  host,
grpc_auth_context auth_context 
)
pure virtual

Checks that the host that will be set for a call is acceptable. Returns ok if the host is acceptable, otherwise returns an error.

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

◆ mutable_channel_creds()

grpc_channel_credentials* grpc_channel_security_connector::mutable_channel_creds ( )
inline

Definition at line 138 of file security_connector.h.

◆ mutable_request_metadata_creds()

grpc_call_credentials* grpc_channel_security_connector::mutable_request_metadata_creds ( )
inline

Definition at line 144 of file security_connector.h.

◆ request_metadata_creds()

const grpc_call_credentials* grpc_channel_security_connector::request_metadata_creds ( ) const
inline

Definition at line 141 of file security_connector.h.

◆ type()

grpc_core::UniqueTypeName grpc_channel_security_connector::type ( ) const
overridevirtual

Implements grpc_security_connector.

Definition at line 57 of file security_connector.cc.

Member Data Documentation

◆ channel_args_

std::unique_ptr<grpc_channel_args> grpc_channel_security_connector::channel_args_
private

Definition at line 163 of file security_connector.h.

◆ channel_creds_

grpc_core::RefCountedPtr<grpc_channel_credentials> grpc_channel_security_connector::channel_creds_
private

Definition at line 161 of file security_connector.h.

◆ request_metadata_creds_

grpc_core::RefCountedPtr<grpc_call_credentials> grpc_channel_security_connector::request_metadata_creds_
private

Definition at line 162 of file security_connector.h.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:46