34 #ifndef GRPCXX_CREDENTIALS_H 
   35 #define GRPCXX_CREDENTIALS_H 
   43 class ChannelArguments;
 
   45 class SecureCredentials;
 
   62       const std::shared_ptr<Credentials>& creds1,
 
   63       const std::shared_ptr<Credentials>& creds2);
 
   69       const grpc::string& target, 
const std::shared_ptr<Credentials>& creds,
 
   72   virtual std::shared_ptr<Channel> CreateChannel(
 
  126     const grpc::string& json_key, 
long token_lifetime_seconds);
 
  162     const std::shared_ptr<Credentials>& creds1,
 
  163     const std::shared_ptr<Credentials>& creds2);
 
  170 #endif  // GRPCXX_CREDENTIALS_H 
std::shared_ptr< Credentials > SslCredentials(const SslCredentialsOptions &options)
Builds SSL Credentials given SSL specific options. 
 
std::string string
Definition: config.h:112
 
std::shared_ptr< Credentials > GoogleRefreshTokenCredentials(const grpc::string &json_refresh_token)
Builds refresh token credentials. 
 
Options for channel creation. 
Definition: channel_arguments.h:52
 
std::shared_ptr< Credentials > ServiceAccountJWTAccessCredentials(const grpc::string &json_key, long token_lifetime_seconds)
Builds Service Account JWT Access credentials. 
 
friend std::shared_ptr< Channel > CreateCustomChannel(const grpc::string &target, const std::shared_ptr< Credentials > &creds, const ChannelArguments &args)
Create a new custom Channel pointing to target. 
 
~Credentials() GRPC_OVERRIDE
 
std::shared_ptr< Credentials > AccessTokenCredentials(const grpc::string &access_token)
Builds access token credentials. 
 
virtual bool ApplyToCall(grpc_call *call)=0
Apply this instance's credentials to call. 
 
grpc::string pem_root_certs
The buffer containing the PEM encoding of the server root certificates. 
Definition: credentials.h:83
 
Options used to build SslCredentials. 
Definition: credentials.h:77
 
Definition: grpc_library.h:41
 
virtual SecureCredentials * AsSecureCredentials()=0
 
grpc::string pem_cert_chain
The buffer containing the PEM encoding of the client's certificate chain. 
Definition: credentials.h:92
 
std::shared_ptr< Credentials > GoogleIAMCredentials(const grpc::string &authorization_token, const grpc::string &authority_selector)
Builds IAM credentials. 
 
A credentials object encapsulates all the state needed by a client to authenticate with a server and ...
Definition: credentials.h:53
 
grpc::string pem_private_key
The buffer containing the PEM encoding of the client's private key. 
Definition: credentials.h:87
 
std::shared_ptr< Credentials > GoogleDefaultCredentials()
Builds credentials with reasonable defaults. 
 
friend std::shared_ptr< Credentials > CompositeCredentials(const std::shared_ptr< Credentials > &creds1, const std::shared_ptr< Credentials > &creds2)
Combines two credentials objects into a composite credentials. 
 
std::shared_ptr< Credentials > InsecureCredentials()
Credentials for an unencrypted, unauthenticated channel. 
 
std::shared_ptr< Credentials > GoogleComputeEngineCredentials()
Builds credentials for use when running in GCE. 
 
std::shared_ptr< Credentials > CompositeCredentials(const std::shared_ptr< Credentials > &creds1, const std::shared_ptr< Credentials > &creds2)
Combines two credentials objects into a composite credentials. 
 
#define GRPC_OVERRIDE
Definition: config.h:77