GRPC C++  1.62.0
Public Member Functions | Protected Member Functions | Friends
grpc::CallCredentials Class Referenceabstract

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

#include <credentials.h>

Public Member Functions

virtual bool ApplyToCall (grpc_call *call)=0
 Apply this instance's credentials to call. More...
 
virtual grpc::string DebugString ()
 

Protected Member Functions

virtual SecureCallCredentials * 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< CallCredentialsCompositeCallCredentials (const std::shared_ptr< CallCredentials > &creds1, const std::shared_ptr< CallCredentials > &creds2)
 Combines two call credentials objects into a composite call credentials. More...
 

Detailed Description

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

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

Member Function Documentation

◆ ApplyToCall()

virtual bool grpc::CallCredentials::ApplyToCall ( grpc_call call)
pure virtual

Apply this instance's credentials to call.

◆ AsSecureCredentials()

virtual SecureCallCredentials* grpc::CallCredentials::AsSecureCredentials ( )
protectedpure virtual

◆ DebugString()

virtual grpc::string grpc::CallCredentials::DebugString ( )
inlinevirtual

Friends And Related Function Documentation

◆ CompositeCallCredentials

std::shared_ptr<CallCredentials> CompositeCallCredentials ( const std::shared_ptr< CallCredentials > &  creds1,
const std::shared_ptr< CallCredentials > &  creds2 
)
friend

Combines two call credentials objects into a composite call credentials.

◆ 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.


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