#include <grpc/support/port_platform.h>
#include "src/core/lib/security/credentials/alts/alts_credentials.h"
#include <utility>
#include "absl/strings/string_view.h"
#include <grpc/grpc.h>
#include <grpc/support/alloc.h>
#include <grpc/support/string_util.h>
#include "src/core/lib/security/credentials/alts/check_gcp_environment.h"
#include "src/core/lib/security/credentials/alts/grpc_alts_credentials_options.h"
#include "src/core/lib/security/security_connector/alts/alts_security_connector.h"
Go to the source code of this file.
Macros | |
#define | GRPC_ALTS_HANDSHAKER_SERVICE_URL "metadata.google.internal.:8080" |
Functions | |
grpc_channel_credentials * | grpc_alts_credentials_create (const grpc_alts_credentials_options *options) |
grpc_channel_credentials * | grpc_alts_credentials_create_customized (const grpc_alts_credentials_options *options, const char *handshaker_service_url, bool enable_untrusted_alts) |
grpc_server_credentials * | grpc_alts_server_credentials_create (const grpc_alts_credentials_options *options) |
grpc_server_credentials * | grpc_alts_server_credentials_create_customized (const grpc_alts_credentials_options *options, const char *handshaker_service_url, bool enable_untrusted_alts) |
#define GRPC_ALTS_HANDSHAKER_SERVICE_URL "metadata.google.internal.:8080" |
Definition at line 35 of file alts_credentials.cc.
grpc_channel_credentials* grpc_alts_credentials_create | ( | const grpc_alts_credentials_options * | options | ) |
This method creates an ALTS channel credential object. The security level of the resulting connection is GRPC_PRIVACY_AND_INTEGRITY. It is used for experimental purpose for now and subject to change.
It returns the created ALTS channel credential object.
Definition at line 110 of file alts_credentials.cc.
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.
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_server_credentials* grpc_alts_server_credentials_create | ( | const grpc_alts_credentials_options * | options | ) |
This method creates an ALTS server credential object. It is used for experimental purpose for now and subject to change.
It returns the created ALTS server credential object.
Definition at line 116 of file alts_credentials.cc.
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.
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.