34 #ifndef GRPC_INTERNAL_CPP_SERVER_SECURE_SERVER_CREDENTIALS_H
35 #define GRPC_INTERNAL_CPP_SERVER_SECURE_SERVER_CREDENTIALS_H
41 #include <grpc/grpc_security.h>
49 static void Destroy(
void *wrapper);
51 static void Process(
void* wrapper, grpc_auth_context* context,
52 const grpc_metadata* md,
size_t num_md,
53 grpc_process_auth_metadata_done_cb cb,
void* user_data);
56 const std::shared_ptr<AuthMetadataProcessor>& processor)
60 void InvokeProcessor(grpc_auth_context* context,
const grpc_metadata* md,
61 size_t num_md, grpc_process_auth_metadata_done_cb cb,
63 std::unique_ptr<ThreadPoolInterface> thread_pool_;
64 std::shared_ptr<AuthMetadataProcessor> processor_;
72 grpc_server_credentials_release(creds_);
79 const std::shared_ptr<AuthMetadataProcessor>& processor)
GRPC_OVERRIDE;
82 grpc_server_credentials* creds_;
83 std::unique_ptr<AuthMetadataProcessorAyncWrapper> processor_;
88 #endif // GRPC_INTERNAL_CPP_SERVER_SECURE_SERVER_CREDENTIALS_H
void SetAuthMetadataProcessor(const std::shared_ptr< AuthMetadataProcessor > &processor) GRPC_OVERRIDE
Definition: secure_server_credentials.cc:114
std::string string
Definition: config.h:112
#define GRPC_FINAL
Definition: config.h:71
SecureServerCredentials(grpc_server_credentials *creds)
Definition: secure_server_credentials.h:69
ThreadPoolInterface * CreateDefaultThreadPool()
Definition: create_default_thread_pool.cc:42
int AddPortToServer(const grpc::string &addr, grpc_server *server) GRPC_OVERRIDE
Tries to bind server to the given addr (eg, localhost:1234, 192.168.1.1:31416, [::1]:27182, etc.)
Definition: secure_server_credentials.cc:109
Definition: server_credentials.h:49
~SecureServerCredentials() GRPC_OVERRIDE
Definition: secure_server_credentials.h:71
Definition: secure_server_credentials.h:67
#define GRPC_OVERRIDE
Definition: config.h:77