Classes | Functions
alts_credentials.h File Reference
#include <grpc/support/port_platform.h>
#include <grpc/grpc.h>
#include <grpc/grpc_security.h>
#include <grpc/impl/codegen/grpc_types.h>
#include "src/core/lib/gpr/useful.h"
#include "src/core/lib/gprpp/ref_counted_ptr.h"
#include "src/core/lib/gprpp/unique_type_name.h"
#include "src/core/lib/security/credentials/credentials.h"
#include "src/core/lib/security/security_connector/security_connector.h"
Include dependency graph for alts_credentials.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  grpc_alts_credentials
 
class  grpc_alts_server_credentials
 

Functions

grpc_channel_credentialsgrpc_alts_credentials_create_customized (const grpc_alts_credentials_options *options, const char *handshaker_service_url, bool enable_untrusted_alts)
 
grpc_server_credentialsgrpc_alts_server_credentials_create_customized (const grpc_alts_credentials_options *options, const char *handshaker_service_url, bool enable_untrusted_alts)
 

Function Documentation

◆ grpc_alts_credentials_create_customized()

grpc_channel_credentials* grpc_alts_credentials_create_customized ( const grpc_alts_credentials_options options,
const char *  handshaker_service_url,
bool  enable_untrusted_alts 
)

This method creates an ALTS channel credential object with customized information provided by caller.

  • options: grpc ALTS credentials options instance for client.
  • handshaker_service_url: address of ALTS handshaker service in the format of "host:port". If it's nullptr, the address of default metadata server will be used.
  • enable_untrusted_alts: a boolean flag used to enable ALTS in untrusted mode. This mode can be enabled when we are sure ALTS is running on GCP or for testing purpose.

It returns nullptr if the flag is disabled AND ALTS is not running on GCP. Otherwise, it returns the created credential object.

Definition at line 92 of file alts_credentials.cc.

◆ grpc_alts_server_credentials_create_customized()

grpc_server_credentials* grpc_alts_server_credentials_create_customized ( const grpc_alts_credentials_options options,
const char *  handshaker_service_url,
bool  enable_untrusted_alts 
)

This method creates an ALTS server credential object with customized information provided by caller.

  • options: grpc ALTS credentials options instance for server.
  • handshaker_service_url: address of ALTS handshaker service in the format of "host:port". If it's nullptr, the address of default metadata server will be used.
  • enable_untrusted_alts: a boolean flag used to enable ALTS in untrusted mode. This mode can be enabled when we are sure ALTS is running on GCP or for testing purpose.

It returns nullptr if the flag is disabled and ALTS is not running on GCP. Otherwise, it returns the created credential object.

Definition at line 101 of file alts_credentials.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:02