GRPC C++  1.64.0
Public Member Functions | Protected Member Functions | Friends
grpc::ChannelCredentials Class Reference

A channel credentials object encapsulates all the state needed by a client to authenticate with a server for a given channel. More...

#include <credentials.h>

Public Member Functions

 ~ChannelCredentials () override
 

Protected Member Functions

 ChannelCredentials (grpc_channel_credentials *creds)
 
grpc_channel_credentialsc_creds ()
 

Friends

class XdsChannelCredentialsImpl
 
std::shared_ptr< grpc::ChannelCreateCustomChannel (const grpc::string &target, const std::shared_ptr< grpc::ChannelCredentials > &creds, const grpc::ChannelArguments &args)
 
std::shared_ptr< grpc::Channelgrpc::experimental::CreateCustomChannelWithInterceptors (const grpc::string &target, const std::shared_ptr< grpc::ChannelCredentials > &creds, const grpc::ChannelArguments &args, std::vector< std::unique_ptr< grpc::experimental::ClientInterceptorFactoryInterface >> interceptor_creators)
 
std::shared_ptr< ChannelCredentialsCompositeChannelCredentials (const std::shared_ptr< ChannelCredentials > &channel_creds, const std::shared_ptr< CallCredentials > &call_creds)
 Combines a channel credentials and a call credentials into a composite channel credentials. More...
 

Detailed Description

A channel credentials object encapsulates all the state needed by a client to authenticate with a server for a given channel.

It can make various assertions, e.g., about the client’s identity, role for all the calls on that channel.

See also
https://grpc.io/docs/guides/auth.html

Constructor & Destructor Documentation

◆ ~ChannelCredentials()

grpc::ChannelCredentials::~ChannelCredentials ( )
override

◆ ChannelCredentials()

grpc::ChannelCredentials::ChannelCredentials ( grpc_channel_credentials creds)
explicitprotected

Member Function Documentation

◆ c_creds()

grpc_channel_credentials* grpc::ChannelCredentials::c_creds ( )
inlineprotected

Friends And Related Function Documentation

◆ CompositeChannelCredentials

std::shared_ptr<ChannelCredentials> CompositeChannelCredentials ( const std::shared_ptr< ChannelCredentials > &  channel_creds,
const std::shared_ptr< CallCredentials > &  call_creds 
)
friend

Combines a channel credentials and a call credentials into a composite channel credentials.

◆ CreateCustomChannel

std::shared_ptr<grpc::Channel> CreateCustomChannel ( const grpc::string &  target,
const std::shared_ptr< grpc::ChannelCredentials > &  creds,
const grpc::ChannelArguments args 
)
friend

◆ grpc::experimental::CreateCustomChannelWithInterceptors

std::shared_ptr<grpc::Channel> grpc::experimental::CreateCustomChannelWithInterceptors ( const grpc::string &  target,
const std::shared_ptr< grpc::ChannelCredentials > &  creds,
const grpc::ChannelArguments args,
std::vector< std::unique_ptr< grpc::experimental::ClientInterceptorFactoryInterface >>  interceptor_creators 
)
friend

◆ XdsChannelCredentialsImpl

friend class XdsChannelCredentialsImpl
friend

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