Google Cloud C++ Client  2.7.0
C++ Client Library for Google Cloud Platform
Classes | Namespaces | Typedefs | Functions
credentials.h File Reference
#include "google/cloud/common_options.h"
#include "google/cloud/options.h"
#include "google/cloud/version.h"
#include <chrono>
#include <memory>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

class  google::cloud::Credentials
 An opaque representation of the authentication configuration. More...
 
struct  google::cloud::UnifiedCredentialsOption
 A wrapper to store credentials into an options. More...
 
struct  google::cloud::DelegatesOption
 Configure the delegates for MakeImpersonateServiceAccountCredentials() More...
 
struct  google::cloud::ScopesOption
 Configure the scopes for MakeImpersonateServiceAccountCredentials() More...
 
struct  google::cloud::AccessTokenLifetimeOption
 Configure the access token lifetime. More...
 
struct  google::cloud::CARootsFilePathOption
 Configures a custom CA (Certificates Authority) certificates file. More...
 

Namespaces

 google
 
 google::cloud
 Contains all the Google Cloud C++ Library APIs.
 

Typedefs

using google::cloud::UnifiedCredentialsOptionList = OptionList< AccessTokenLifetimeOption, CARootsFilePathOption, DelegatesOption, ScopesOption, TracingComponentsOption, UnifiedCredentialsOption >
 A list of options related to authentication. More...
 

Functions

std::shared_ptr< Credentials > google::cloud::MakeInsecureCredentials (Options opts={})
 Create insecure (aka anonymous, aka unauthenticated) credentials. More...
 
std::shared_ptr< Credentials > google::cloud::MakeGoogleDefaultCredentials (Options opts={})
 Creates the default credentials. More...
 
std::shared_ptr< Credentials > google::cloud::MakeAccessTokenCredentials (std::string const &access_token, std::chrono::system_clock::time_point expiration, Options opts={})
 Creates credentials with a fixed access token. More...
 
std::shared_ptr< Credentials > google::cloud::MakeImpersonateServiceAccountCredentials (std::shared_ptr< Credentials > base_credentials, std::string target_service_account, Options opts={})
 Creates credentials for service account impersonation. More...
 
std::shared_ptr< Credentials > google::cloud::MakeServiceAccountCredentials (std::string json_object, Options opts={})
 Creates service account credentials from a service account key. More...
 
std::shared_ptr< Credentials > google::cloud::MakeExternalAccountCredentials (std::string json_object, Options opts={})
 Creates credentials based on external accounts. More...