GRPC C++
1.13.0-dev
|
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 () | |
Protected Member Functions | |
virtual SecureChannelCredentials * | AsSecureCredentials ()=0 |
Friends | |
std::shared_ptr< ChannelCredentials > | CompositeChannelCredentials (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< Channel > | CreateCustomChannel (const grpc::string &target, const std::shared_ptr< ChannelCredentials > &creds, const ChannelArguments &args) |
Create a new custom Channel pointing to target. More... | |
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.
grpc::ChannelCredentials::ChannelCredentials | ( | ) |
grpc::ChannelCredentials::~ChannelCredentials | ( | ) |
|
protectedpure virtual |
|
friend |
Combines a channel credentials and a call credentials into a composite channel credentials.
|
friend |
Create a new custom Channel pointing to target.
target | The URI of the endpoint to connect to. |
creds | Credentials to use for the created channel. If it does not hold an object or is invalid, a lame channel (one on which all operations fail) is returned. |
args | Options for channel creation. |