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

Public Member Functions

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

Private Member Functions

virtual Result< std::pair< std::string, std::chrono::seconds > > Refresh ()=0
 

Private Attributes

std::string latest_credential_
 
std::mutex latest_credential_mutex_
 
std::chrono::steady_clock::time_point expiration_
 

Constructor & Destructor Documentation

◆ RefreshingCredentialSource()

cuttlefish::anonymous_namespace{credential_source.cc}::RefreshingCredentialSource::RefreshingCredentialSource ( )
inline

Member Function Documentation

◆ Credential()

virtual Result< std::string > cuttlefish::anonymous_namespace{credential_source.cc}::RefreshingCredentialSource::Credential ( )
inlinefinaloverridevirtual

◆ Refresh()

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

Member Data Documentation

◆ expiration_

std::chrono::steady_clock::time_point cuttlefish::anonymous_namespace{credential_source.cc}::RefreshingCredentialSource::expiration_
private

◆ latest_credential_

std::string cuttlefish::anonymous_namespace{credential_source.cc}::RefreshingCredentialSource::latest_credential_
private

◆ latest_credential_mutex_

std::mutex cuttlefish::anonymous_namespace{credential_source.cc}::RefreshingCredentialSource::latest_credential_mutex_
private

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