Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
grpc_core::ExternalAccountCredentials Class Referenceabstract

#include <external_account_credentials.h>

Inheritance diagram for grpc_core::ExternalAccountCredentials:
Inheritance graph
[legend]

Classes

struct  HTTPRequestContext
 
struct  Options
 

Public Member Functions

std::string debug_string () override
 
 ExternalAccountCredentials (Options options, std::vector< std::string > scopes)
 
 ~ExternalAccountCredentials () override
 
- Public Member Functions inherited from grpc_oauth2_token_fetcher_credentials
std::string debug_string () override
 
grpc_core::ArenaPromise< absl::StatusOr< grpc_core::ClientMetadataHandle > > GetRequestMetadata (grpc_core::ClientMetadataHandle initial_metadata, const GetRequestMetadataArgs *args) override
 
 grpc_oauth2_token_fetcher_credentials ()
 
void on_http_response (grpc_credentials_metadata_request *r, grpc_error_handle error)
 
grpc_core::UniqueTypeName type () const override
 
 ~grpc_oauth2_token_fetcher_credentials () override
 
- Public Member Functions inherited from grpc_call_credentials
int cmp (const grpc_call_credentials *other) const
 
 grpc_call_credentials (grpc_security_level min_security_level=GRPC_PRIVACY_AND_INTEGRITY)
 
virtual grpc_security_level min_security_level () const
 
 ~grpc_call_credentials () override=default
 
- Public Member Functions inherited from grpc_core::RefCounted< grpc_call_credentials >
RefCountedoperator= (const RefCounted &)=delete
 
RefCountedPtr< grpc_call_credentialsRef () GRPC_MUST_USE_RESULT
 
RefCountedPtr< grpc_call_credentialsRef (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
 RefCounted (const RefCounted &)=delete
 
RefCountedPtr< grpc_call_credentialsRefIfNonZero () GRPC_MUST_USE_RESULT
 
RefCountedPtr< grpc_call_credentialsRefIfNonZero (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
void Unref ()
 
void Unref (const DebugLocation &location, const char *reason)
 
 ~RefCounted ()=default
 
- Public Member Functions inherited from grpc_core::PolymorphicRefCount
virtual ~PolymorphicRefCount ()=default
 

Static Public Member Functions

static RefCountedPtr< ExternalAccountCredentialsCreate (const Json &json, std::vector< std::string > scopes, grpc_error_handle *error)
 

Protected Member Functions

virtual void RetrieveSubjectToken (HTTPRequestContext *ctx, const Options &options, std::function< void(std::string, grpc_error_handle)> cb)=0
 
- Protected Member Functions inherited from grpc_core::RefCounted< grpc_call_credentials >
 RefCounted (const char *trace=nullptr, intptr_t initial_refcount=1)
 

Private Member Functions

void ExchangeToken (absl::string_view subject_token)
 
void fetch_oauth2 (grpc_credentials_metadata_request *req, grpc_polling_entity *pollent, grpc_iomgr_cb_func cb, Timestamp deadline) override
 
void FinishTokenFetch (grpc_error_handle error)
 
void ImpersenateServiceAccount ()
 
void OnExchangeTokenInternal (grpc_error_handle error)
 
void OnImpersenateServiceAccountInternal (grpc_error_handle error)
 
void OnRetrieveSubjectTokenInternal (absl::string_view subject_token, grpc_error_handle error)
 

Static Private Member Functions

static void OnExchangeToken (void *arg, grpc_error_handle error)
 
static void OnImpersenateServiceAccount (void *arg, grpc_error_handle error)
 

Private Attributes

HTTPRequestContextctx_ = nullptr
 
OrphanablePtr< HttpRequesthttp_request_
 
grpc_credentials_metadata_requestmetadata_req_ = nullptr
 
Options options_
 
grpc_iomgr_cb_func response_cb_ = nullptr
 
std::vector< std::string > scopes_
 

Additional Inherited Members

- Public Types inherited from grpc_core::RefCounted< grpc_call_credentials >
using RefCountedChildType = grpc_call_credentials
 

Detailed Description

Definition at line 45 of file external_account_credentials.h.

Constructor & Destructor Documentation

◆ ExternalAccountCredentials()

grpc_core::ExternalAccountCredentials::ExternalAccountCredentials ( Options  options,
std::vector< std::string >  scopes 
)

Definition at line 228 of file external_account_credentials.cc.

◆ ~ExternalAccountCredentials()

grpc_core::ExternalAccountCredentials::~ExternalAccountCredentials ( )
override

Definition at line 237 of file external_account_credentials.cc.

Member Function Documentation

◆ Create()

RefCountedPtr< ExternalAccountCredentials > grpc_core::ExternalAccountCredentials::Create ( const Json json,
std::vector< std::string >  scopes,
grpc_error_handle error 
)
static

Definition at line 102 of file external_account_credentials.cc.

◆ debug_string()

std::string grpc_core::ExternalAccountCredentials::debug_string ( )
overridevirtual

Reimplemented from grpc_call_credentials.

Definition at line 239 of file external_account_credentials.cc.

◆ ExchangeToken()

void grpc_core::ExternalAccountCredentials::ExchangeToken ( absl::string_view  subject_token)
private

Definition at line 280 of file external_account_credentials.cc.

◆ fetch_oauth2()

void grpc_core::ExternalAccountCredentials::fetch_oauth2 ( grpc_credentials_metadata_request req,
grpc_polling_entity pollent,
grpc_iomgr_cb_func  cb,
Timestamp  deadline 
)
overrideprivatevirtual

◆ FinishTokenFetch()

void grpc_core::ExternalAccountCredentials::FinishTokenFetch ( grpc_error_handle  error)
private

Definition at line 520 of file external_account_credentials.cc.

◆ ImpersenateServiceAccount()

void grpc_core::ExternalAccountCredentials::ImpersenateServiceAccount ( )
private

Definition at line 395 of file external_account_credentials.cc.

◆ OnExchangeToken()

void grpc_core::ExternalAccountCredentials::OnExchangeToken ( void *  arg,
grpc_error_handle  error 
)
staticprivate

Definition at line 363 of file external_account_credentials.cc.

◆ OnExchangeTokenInternal()

void grpc_core::ExternalAccountCredentials::OnExchangeTokenInternal ( grpc_error_handle  error)
private

Definition at line 370 of file external_account_credentials.cc.

◆ OnImpersenateServiceAccount()

void grpc_core::ExternalAccountCredentials::OnImpersenateServiceAccount ( void *  arg,
grpc_error_handle  error 
)
staticprivate

Definition at line 457 of file external_account_credentials.cc.

◆ OnImpersenateServiceAccountInternal()

void grpc_core::ExternalAccountCredentials::OnImpersenateServiceAccountInternal ( grpc_error_handle  error)
private

Definition at line 464 of file external_account_credentials.cc.

◆ OnRetrieveSubjectTokenInternal()

void grpc_core::ExternalAccountCredentials::OnRetrieveSubjectTokenInternal ( absl::string_view  subject_token,
grpc_error_handle  error 
)
private

Definition at line 271 of file external_account_credentials.cc.

◆ RetrieveSubjectToken()

virtual void grpc_core::ExternalAccountCredentials::RetrieveSubjectToken ( HTTPRequestContext ctx,
const Options options,
std::function< void(std::string, grpc_error_handle)>  cb 
)
protectedpure virtual

Member Data Documentation

◆ ctx_

HTTPRequestContext* grpc_core::ExternalAccountCredentials::ctx_ = nullptr
private

Definition at line 122 of file external_account_credentials.h.

◆ http_request_

OrphanablePtr<HttpRequest> grpc_core::ExternalAccountCredentials::http_request_
private

Definition at line 121 of file external_account_credentials.h.

◆ metadata_req_

grpc_credentials_metadata_request* grpc_core::ExternalAccountCredentials::metadata_req_ = nullptr
private

Definition at line 123 of file external_account_credentials.h.

◆ options_

Options grpc_core::ExternalAccountCredentials::options_
private

Definition at line 118 of file external_account_credentials.h.

◆ response_cb_

grpc_iomgr_cb_func grpc_core::ExternalAccountCredentials::response_cb_ = nullptr
private

Definition at line 124 of file external_account_credentials.h.

◆ scopes_

std::vector<std::string> grpc_core::ExternalAccountCredentials::scopes_
private

Definition at line 119 of file external_account_credentials.h.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:36