GRPC C++  1.39.1
Public Member Functions | Protected Member Functions
grpc_oauth2_token_fetcher_credentials Class Referenceabstract

#include <oauth2_credentials.h>

Public Member Functions

 grpc_oauth2_token_fetcher_credentials ()
 
 ~grpc_oauth2_token_fetcher_credentials () override
 
bool get_request_metadata (grpc_polling_entity *pollent, grpc_auth_metadata_context context, grpc_credentials_mdelem_array *md_array, grpc_closure *on_request_metadata, grpc_error_handle *error) override
 
void cancel_get_request_metadata (grpc_credentials_mdelem_array *md_array, grpc_error_handle error) override
 
void on_http_response (grpc_credentials_metadata_request *r, grpc_error_handle error)
 
std::string debug_string () override
 
- Public Member Functions inherited from grpc_call_credentials
 grpc_call_credentials (const char *type, grpc_security_level min_security_level=GRPC_PRIVACY_AND_INTEGRITY)
 
 ~grpc_call_credentials () override=default
 
virtual grpc_security_level min_security_level () const
 
const char * type () const
 
- Public Member Functions inherited from grpc_core::RefCounted< grpc_call_credentials >
 ~RefCounted ()=default
 
RefCountedPtr< grpc_call_credentialsRef () GRPC_MUST_USE_RESULT
 
RefCountedPtr< grpc_call_credentialsRef (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
void Unref ()
 
void Unref (const DebugLocation &location, const char *reason)
 
RefCountedPtr< grpc_call_credentialsRefIfNonZero () GRPC_MUST_USE_RESULT
 
RefCountedPtr< grpc_call_credentialsRefIfNonZero (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
 RefCounted (const RefCounted &)=delete
 
RefCountedoperator= (const RefCounted &)=delete
 
- Public Member Functions inherited from grpc_core::PolymorphicRefCount
virtual ~PolymorphicRefCount ()=default
 

Protected Member Functions

virtual void fetch_oauth2 (grpc_credentials_metadata_request *req, grpc_httpcli_context *httpcli_context, grpc_polling_entity *pollent, grpc_iomgr_cb_func cb, grpc_millis deadline)=0
 
- Protected Member Functions inherited from grpc_core::RefCounted< grpc_call_credentials >
 RefCounted (const char *trace=nullptr, intptr_t initial_refcount=1)
 

Constructor & Destructor Documentation

◆ grpc_oauth2_token_fetcher_credentials()

grpc_oauth2_token_fetcher_credentials::grpc_oauth2_token_fetcher_credentials ( )

◆ ~grpc_oauth2_token_fetcher_credentials()

grpc_oauth2_token_fetcher_credentials::~grpc_oauth2_token_fetcher_credentials ( )
override

Member Function Documentation

◆ cancel_get_request_metadata()

void grpc_oauth2_token_fetcher_credentials::cancel_get_request_metadata ( grpc_credentials_mdelem_array md_array,
grpc_error_handle  error 
)
overridevirtual

Implements grpc_call_credentials.

◆ debug_string()

std::string grpc_oauth2_token_fetcher_credentials::debug_string ( )
overridevirtual

Reimplemented from grpc_call_credentials.

Reimplemented in grpc_google_refresh_token_credentials.

◆ fetch_oauth2()

virtual void grpc_oauth2_token_fetcher_credentials::fetch_oauth2 ( grpc_credentials_metadata_request req,
grpc_httpcli_context httpcli_context,
grpc_polling_entity pollent,
grpc_iomgr_cb_func  cb,
grpc_millis  deadline 
)
protectedpure virtual

◆ get_request_metadata()

bool grpc_oauth2_token_fetcher_credentials::get_request_metadata ( grpc_polling_entity pollent,
grpc_auth_metadata_context  context,
grpc_credentials_mdelem_array md_array,
grpc_closure on_request_metadata,
grpc_error_handle error 
)
overridevirtual

Implements grpc_call_credentials.

◆ on_http_response()

void grpc_oauth2_token_fetcher_credentials::on_http_response ( grpc_credentials_metadata_request r,
grpc_error_handle  error 
)

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