GRPC C++  1.24.0
Public Member Functions | Protected Member Functions | Friends
grpc_impl::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_impl.h>

Public Member Functions

 ChannelCredentials ()
 
 ~ChannelCredentials ()
 

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< ChannelCreateCustomChannelImpl (const grpc::string &target, const std::shared_ptr< ChannelCredentials > &creds, const ChannelArguments &args)
 
std::shared_ptr< Channelgrpc_impl::experimental::CreateCustomChannelWithInterceptors (const grpc::string &target, const std::shared_ptr< ChannelCredentials > &creds, const 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_impl::ChannelCredentials::ChannelCredentials ( )

◆ ~ChannelCredentials()

grpc_impl::ChannelCredentials::~ChannelCredentials ( )

Member Function Documentation

◆ AsSecureCredentials()

virtual SecureChannelCredentials* grpc_impl::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.

◆ CreateCustomChannelImpl

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

◆ grpc_impl::experimental::CreateCustomChannelWithInterceptors

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

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