GRPC C++  1.39.1
Functions
local_security_connector.h File Reference
#include <grpc/support/port_platform.h>
#include "src/core/lib/security/context/security_context.h"

Go to the source code of this file.

Functions

grpc_core::RefCountedPtr< grpc_channel_security_connectorgrpc_local_channel_security_connector_create (grpc_core::RefCountedPtr< grpc_channel_credentials > channel_creds, grpc_core::RefCountedPtr< grpc_call_credentials > request_metadata_creds, const grpc_channel_args *args, const char *target_name)
 This method creates a local channel security connector. More...
 
grpc_core::RefCountedPtr< grpc_server_security_connectorgrpc_local_server_security_connector_create (grpc_core::RefCountedPtr< grpc_server_credentials > server_creds)
 This method creates a local server security connector. More...
 

Function Documentation

◆ grpc_local_channel_security_connector_create()

grpc_core::RefCountedPtr<grpc_channel_security_connector> grpc_local_channel_security_connector_create ( grpc_core::RefCountedPtr< grpc_channel_credentials channel_creds,
grpc_core::RefCountedPtr< grpc_call_credentials request_metadata_creds,
const grpc_channel_args args,
const char *  target_name 
)

This method creates a local channel security connector.

  • channel_creds: channel credential instance.
  • request_metadata_creds: credential object which will be sent with each request. This parameter can be nullptr.
  • target_name: the name of the endpoint that the channel is connecting to.
  • args: channel args passed from the caller.
  • sc: address of local channel security connector instance to be returned from the method.

It returns nullptr on failure.

◆ grpc_local_server_security_connector_create()

grpc_core::RefCountedPtr<grpc_server_security_connector> grpc_local_server_security_connector_create ( grpc_core::RefCountedPtr< grpc_server_credentials server_creds)

This method creates a local server security connector.

  • server_creds: server credential instance.
  • sc: address of local server security connector instance to be returned from the method.

It returns nullptr on failure.