GRPC C++  1.46.2
Public Member Functions | Protected Member Functions | Friends
grpc::ChannelCredentials Class Referenceabstract

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 ()
 
 ~ChannelCredentials () override
 

Protected Member Functions

virtual SecureChannelCredentials * AsSecureCredentials ()=0
 

Friends

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...
 
std::shared_ptr< ChannelCredentialsgrpc::XdsCredentials (const std::shared_ptr< ChannelCredentials > &fallback_creds)
 
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)
 

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 ( )

◆ ~ChannelCredentials()

grpc::ChannelCredentials::~ChannelCredentials ( )
override

Member Function Documentation

◆ AsSecureCredentials()

virtual SecureChannelCredentials* grpc::ChannelCredentials::AsSecureCredentials ( )
protectedpure virtual

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

◆ grpc::XdsCredentials

std::shared_ptr<ChannelCredentials> grpc::XdsCredentials ( const std::shared_ptr< ChannelCredentials > &  fallback_creds)
friend

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