Android-cuttlefish cvd tool
Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
cuttlefish::anonymous_namespace{credential_source.cc}::ServiceAccountOauthCredentialSource Class Reference
Inheritance diagram for cuttlefish::anonymous_namespace{credential_source.cc}::ServiceAccountOauthCredentialSource:
Inheritance graph
[legend]
Collaboration diagram for cuttlefish::anonymous_namespace{credential_source.cc}::ServiceAccountOauthCredentialSource:
Collaboration graph
[legend]

Static Public Member Functions

static Result< std::unique_ptr< ServiceAccountOauthCredentialSource > > FromJson (HttpClient &http_client, const Json::Value &service_account_json, const std::string &scope)
 

Private Member Functions

 ServiceAccountOauthCredentialSource (HttpClient &http_client)
 
Result< std::pair< std::string, std::chrono::seconds > > Refresh () override
 

Private Attributes

HttpClienthttp_client_
 
std::string email_
 
std::string scope_
 
std::unique_ptr< EVP_PKEY, void(*)(EVP_PKEY *)> private_key_
 

Additional Inherited Members

- Public Member Functions inherited from cuttlefish::anonymous_namespace{credential_source.cc}::RefreshingCredentialSource
 RefreshingCredentialSource ()
 
virtual Result< std::string > Credential () final override
 
- Public Member Functions inherited from cuttlefish::CredentialSource
virtual ~CredentialSource ()=default
 
virtual Result< std::string > Credential ()=0
 

Constructor & Destructor Documentation

◆ ServiceAccountOauthCredentialSource()

cuttlefish::anonymous_namespace{credential_source.cc}::ServiceAccountOauthCredentialSource::ServiceAccountOauthCredentialSource ( HttpClient http_client)
private

Member Function Documentation

◆ FromJson()

Result< std::unique_ptr< ServiceAccountOauthCredentialSource > > cuttlefish::anonymous_namespace{credential_source.cc}::ServiceAccountOauthCredentialSource::FromJson ( HttpClient http_client,
const Json::Value &  service_account_json,
const std::string &  scope 
)
static

◆ Refresh()

Result< std::pair< std::string, std::chrono::seconds > > cuttlefish::anonymous_namespace{credential_source.cc}::ServiceAccountOauthCredentialSource::Refresh ( )
overrideprivatevirtual

Member Data Documentation

◆ email_

std::string cuttlefish::anonymous_namespace{credential_source.cc}::ServiceAccountOauthCredentialSource::email_
private

◆ http_client_

HttpClient& cuttlefish::anonymous_namespace{credential_source.cc}::ServiceAccountOauthCredentialSource::http_client_
private

◆ private_key_

std::unique_ptr<EVP_PKEY, void (*)(EVP_PKEY*)> cuttlefish::anonymous_namespace{credential_source.cc}::ServiceAccountOauthCredentialSource::private_key_
private

◆ scope_

std::string cuttlefish::anonymous_namespace{credential_source.cc}::ServiceAccountOauthCredentialSource::scope_
private

The documentation for this class was generated from the following file: