GRPC C++  1.30.0
Data Structures | Namespaces | Functions | Variables
credentials_impl.h File Reference
#include <map>
#include <memory>
#include <vector>
#include <grpc/grpc_security_constants.h>
#include <grpcpp/channel_impl.h>
#include <grpcpp/impl/codegen/client_interceptor.h>
#include <grpcpp/impl/codegen/grpc_library.h>
#include <grpcpp/security/auth_context.h>
#include <grpcpp/security/tls_credentials_options.h>
#include <grpcpp/support/channel_arguments_impl.h>
#include <grpcpp/support/status.h>
#include <grpcpp/support/string_ref.h>

Go to the source code of this file.

Data Structures

class  grpc_impl::ChannelCredentials
 A channel credentials object encapsulates all the state needed by a client to authenticate with a server for a given channel. More...
 
class  grpc_impl::CallCredentials
 A call credentials object encapsulates the state needed by a client to authenticate with a server for a given call on a channel. More...
 
struct  grpc_impl::SslCredentialsOptions
 Options used to build SslCredentials. More...
 
class  grpc_impl::MetadataCredentialsPlugin
 User defined metadata credentials. More...
 
struct  grpc_impl::experimental::StsCredentialsOptions
 Options for creating STS Oauth Token Exchange credentials following the IETF draft https://tools.ietf.org/html/draft-ietf-oauth-token-exchange-16. More...
 
struct  grpc_impl::experimental::AltsCredentialsOptions
 Options used to build AltsCredentials. More...
 

Namespaces

 grpc_impl
 An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided function on expiry or cancellation.
 
 grpc_impl::experimental
 

Functions

std::shared_ptr< Channel > grpc_impl::CreateCustomChannelImpl (const grpc::string &target, const std::shared_ptr< ChannelCredentials > &creds, const ChannelArguments &args)
 
std::shared_ptr< Channel > grpc_impl::experimental::CreateCustomChannelWithInterceptors (const grpc::string &target, const std::shared_ptr< ChannelCredentials > &creds, const ChannelArguments &args, std::vector< std::unique_ptr< grpc::experimental::ClientInterceptorFactoryInterface >> interceptor_creators)
 
std::shared_ptr< ChannelCredentials > grpc_impl::GoogleDefaultCredentials ()
 Builds credentials with reasonable defaults. More...
 
std::shared_ptr< ChannelCredentials > grpc_impl::SslCredentials (const SslCredentialsOptions &options)
 Builds SSL Credentials given SSL specific options. More...
 
std::shared_ptr< CallCredentials > grpc_impl::GoogleComputeEngineCredentials ()
 Builds credentials for use when running in GCE. More...
 
std::shared_ptr< CallCredentials > grpc_impl::ServiceAccountJWTAccessCredentials (const grpc::string &json_key, long token_lifetime_seconds=grpc_impl::kMaxAuthTokenLifetimeSecs)
 Builds Service Account JWT Access credentials. More...
 
std::shared_ptr< CallCredentials > grpc_impl::GoogleRefreshTokenCredentials (const grpc::string &json_refresh_token)
 Builds refresh token credentials. More...
 
std::shared_ptr< CallCredentials > grpc_impl::AccessTokenCredentials (const grpc::string &access_token)
 Builds access token credentials. More...
 
std::shared_ptr< CallCredentials > grpc_impl::GoogleIAMCredentials (const grpc::string &authorization_token, const grpc::string &authority_selector)
 Builds IAM credentials. More...
 
std::shared_ptr< ChannelCredentials > grpc_impl::CompositeChannelCredentials (const std::shared_ptr< ChannelCredentials > &channel_creds, const std::shared_ptr< CallCredentials > &call_creds)
 Combines a channel credentials and a call credentials into a composite channel credentials. More...
 
std::shared_ptr< CallCredentials > grpc_impl::CompositeCallCredentials (const std::shared_ptr< CallCredentials > &creds1, const std::shared_ptr< CallCredentials > &creds2)
 Combines two call credentials objects into a composite call credentials. More...
 
std::shared_ptr< ChannelCredentials > grpc_impl::InsecureChannelCredentials ()
 Credentials for an unencrypted, unauthenticated channel. More...
 
std::shared_ptr< CallCredentials > grpc_impl::MetadataCredentialsFromPlugin (std::unique_ptr< MetadataCredentialsPlugin > plugin)
 
grpc::Status grpc_impl::experimental::StsCredentialsOptionsFromJson (const grpc::string &json_string, StsCredentialsOptions *options)
 Creates STS Options from a JSON string. More...
 
grpc::Status grpc_impl::experimental::StsCredentialsOptionsFromEnv (StsCredentialsOptions *options)
 Creates STS credentials options from the $STS_CREDENTIALS environment variable. More...
 
std::shared_ptr< CallCredentials > grpc_impl::experimental::StsCredentials (const StsCredentialsOptions &options)
 
std::shared_ptr< CallCredentials > grpc_impl::experimental::MetadataCredentialsFromPlugin (std::unique_ptr< MetadataCredentialsPlugin > plugin, grpc_security_level min_security_level)
 
std::shared_ptr< ChannelCredentials > grpc_impl::experimental::AltsCredentials (const AltsCredentialsOptions &options)
 Builds ALTS Credentials given ALTS specific options. More...
 
std::shared_ptr< ChannelCredentials > grpc_impl::experimental::LocalCredentials (grpc_local_connect_type type)
 Builds Local Credentials. More...
 
std::shared_ptr< ChannelCredentials > grpc_impl::experimental::TlsCredentials (const TlsCredentialsOptions &options)
 Builds TLS Credentials given TLS options. More...
 

Variables

constexpr long grpc_impl::kMaxAuthTokenLifetimeSecs = 3600