GRPC C++  1.66.0
Public Member Functions | Protected Member Functions | Friends
grpc::ServerCredentials Class Reference

Wrapper around grpc_server_credentials, a way to authenticate a server. More...

#include <server_credentials.h>

Public Member Functions

 ~ServerCredentials () override
 
virtual void SetAuthMetadataProcessor (const std::shared_ptr< grpc::AuthMetadataProcessor > &processor)
 This method is not thread-safe and has to be called before the server is started. More...
 

Protected Member Functions

 ServerCredentials (grpc_server_credentials *creds)
 
grpc_server_credentialsc_creds () const
 

Friends

class Server
 
class ServerBuilder
 
std::shared_ptr< ServerCredentialsgrpc::XdsServerCredentials (const std::shared_ptr< ServerCredentials > &fallback_credentials)
 

Detailed Description

Wrapper around grpc_server_credentials, a way to authenticate a server.

Constructor & Destructor Documentation

◆ ~ServerCredentials()

grpc::ServerCredentials::~ServerCredentials ( )
override

◆ ServerCredentials()

grpc::ServerCredentials::ServerCredentials ( grpc_server_credentials creds)
explicitprotected

Member Function Documentation

◆ c_creds()

grpc_server_credentials* grpc::ServerCredentials::c_creds ( ) const
inlineprotected

◆ SetAuthMetadataProcessor()

virtual void grpc::ServerCredentials::SetAuthMetadataProcessor ( const std::shared_ptr< grpc::AuthMetadataProcessor > &  processor)
virtual

This method is not thread-safe and has to be called before the server is started.

The last call to this function wins.

Friends And Related Function Documentation

◆ grpc::XdsServerCredentials

std::shared_ptr<ServerCredentials> grpc::XdsServerCredentials ( const std::shared_ptr< ServerCredentials > &  fallback_credentials)
friend

◆ Server

friend class Server
friend

◆ ServerBuilder

friend class ServerBuilder
friend

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