Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
grpc_core::UrlExternalAccountCredentials Class Referencefinal

#include <url_external_account_credentials.h>

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

Public Member Functions

 UrlExternalAccountCredentials (Options options, std::vector< std::string > scopes, grpc_error_handle *error)
 
- Public Member Functions inherited from grpc_core::ExternalAccountCredentials
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< UrlExternalAccountCredentialsCreate (Options options, std::vector< std::string > scopes, grpc_error_handle *error)
 
- Static Public Member Functions inherited from grpc_core::ExternalAccountCredentials
static RefCountedPtr< ExternalAccountCredentialsCreate (const Json &json, std::vector< std::string > scopes, grpc_error_handle *error)
 

Private Member Functions

void FinishRetrieveSubjectToken (std::string subject_token, grpc_error_handle error)
 
void OnRetrieveSubjectTokenInternal (grpc_error_handle error)
 
void RetrieveSubjectToken (HTTPRequestContext *ctx, const Options &options, std::function< void(std::string, grpc_error_handle)> cb) override
 

Static Private Member Functions

static void OnRetrieveSubjectToken (void *arg, grpc_error_handle error)
 

Private Attributes

std::function< void(std::string, grpc_error_handle)> cb_ = nullptr
 
HTTPRequestContextctx_ = nullptr
 
std::string format_subject_token_field_name_
 
std::string format_type_
 
std::map< std::string, std::string > headers_
 
OrphanablePtr< HttpRequesthttp_request_
 
URI url_
 
std::string url_full_path_
 

Additional Inherited Members

- Public Types inherited from grpc_core::RefCounted< grpc_call_credentials >
using RefCountedChildType = grpc_call_credentials
 
- Protected Member Functions inherited from grpc_core::ExternalAccountCredentials
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)
 

Detailed Description

Definition at line 36 of file url_external_account_credentials.h.

Constructor & Destructor Documentation

◆ UrlExternalAccountCredentials()

grpc_core::UrlExternalAccountCredentials::UrlExternalAccountCredentials ( Options  options,
std::vector< std::string >  scopes,
grpc_error_handle error 
)

Definition at line 60 of file url_external_account_credentials.cc.

Member Function Documentation

◆ Create()

RefCountedPtr< UrlExternalAccountCredentials > grpc_core::UrlExternalAccountCredentials::Create ( Options  options,
std::vector< std::string >  scopes,
grpc_error_handle error 
)
static

Definition at line 48 of file url_external_account_credentials.cc.

◆ FinishRetrieveSubjectToken()

void grpc_core::UrlExternalAccountCredentials::FinishRetrieveSubjectToken ( std::string  subject_token,
grpc_error_handle  error 
)
private

Definition at line 233 of file url_external_account_credentials.cc.

◆ OnRetrieveSubjectToken()

void grpc_core::UrlExternalAccountCredentials::OnRetrieveSubjectToken ( void *  arg,
grpc_error_handle  error 
)
staticprivate

Definition at line 188 of file url_external_account_credentials.cc.

◆ OnRetrieveSubjectTokenInternal()

void grpc_core::UrlExternalAccountCredentials::OnRetrieveSubjectTokenInternal ( grpc_error_handle  error)
private

Definition at line 195 of file url_external_account_credentials.cc.

◆ RetrieveSubjectToken()

void grpc_core::UrlExternalAccountCredentials::RetrieveSubjectToken ( HTTPRequestContext ctx,
const Options options,
std::function< void(std::string, grpc_error_handle)>  cb 
)
overrideprivate

Definition at line 134 of file url_external_account_credentials.cc.

Member Data Documentation

◆ cb_

std::function<void(std::string, grpc_error_handle)> grpc_core::UrlExternalAccountCredentials::cb_ = nullptr
private

Definition at line 66 of file url_external_account_credentials.h.

◆ ctx_

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

Definition at line 65 of file url_external_account_credentials.h.

◆ format_subject_token_field_name_

std::string grpc_core::UrlExternalAccountCredentials::format_subject_token_field_name_
private

Definition at line 62 of file url_external_account_credentials.h.

◆ format_type_

std::string grpc_core::UrlExternalAccountCredentials::format_type_
private

Definition at line 61 of file url_external_account_credentials.h.

◆ headers_

std::map<std::string, std::string> grpc_core::UrlExternalAccountCredentials::headers_
private

Definition at line 60 of file url_external_account_credentials.h.

◆ http_request_

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

Definition at line 64 of file url_external_account_credentials.h.

◆ url_

URI grpc_core::UrlExternalAccountCredentials::url_
private

Definition at line 58 of file url_external_account_credentials.h.

◆ url_full_path_

std::string grpc_core::UrlExternalAccountCredentials::url_full_path_
private

Definition at line 59 of file url_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:37