Android-cuttlefish cvd tool
Classes | Functions | Variables
cuttlefish::anonymous_namespace{credential_source.cc} Namespace Reference

Classes

class  FixedCredentialSource
 
class  GceMetadataCredentialSource
 
class  RefreshingCredentialSource
 
class  RefreshTokenCredentialSource
 
class  ServiceAccountOauthCredentialSource
 

Functions

std::unique_ptr< CredentialSourceTryParseServiceAccount (HttpClient &http_client, const std::string &file_content)
 
Result< std::unique_ptr< CredentialSource > > GetCredentialSourceLegacy (HttpClient &http_client, const std::string &credential_source, const std::string &oauth_filepath)
 
static std::string CollectSslErrors ()
 
static Result< std::string > Base64Url (const char *data, std::size_t size)
 
static Result< std::string > JsonToBase64Url (const Json::Value &json)
 
static Result< std::string > CreateJwt (const std::string &email, const std::string &scope, EVP_PKEY *private_key)
 

Variables

constexpr auto kRefreshWindow = std::chrono::minutes(2)
 

Function Documentation

◆ Base64Url()

static Result< std::string > cuttlefish::anonymous_namespace{credential_source.cc}::Base64Url ( const char *  data,
std::size_t  size 
)
static

◆ CollectSslErrors()

static std::string cuttlefish::anonymous_namespace{credential_source.cc}::CollectSslErrors ( )
static

◆ CreateJwt()

static Result< std::string > cuttlefish::anonymous_namespace{credential_source.cc}::CreateJwt ( const std::string &  email,
const std::string &  scope,
EVP_PKEY *  private_key 
)
static

◆ GetCredentialSourceLegacy()

Result< std::unique_ptr< CredentialSource > > cuttlefish::anonymous_namespace{credential_source.cc}::GetCredentialSourceLegacy ( HttpClient http_client,
const std::string &  credential_source,
const std::string &  oauth_filepath 
)

◆ JsonToBase64Url()

static Result< std::string > cuttlefish::anonymous_namespace{credential_source.cc}::JsonToBase64Url ( const Json::Value &  json)
static

◆ TryParseServiceAccount()

std::unique_ptr< CredentialSource > cuttlefish::anonymous_namespace{credential_source.cc}::TryParseServiceAccount ( HttpClient http_client,
const std::string &  file_content 
)

Variable Documentation

◆ kRefreshWindow

constexpr auto cuttlefish::anonymous_namespace{credential_source.cc}::kRefreshWindow = std::chrono::minutes(2)
constexpr