Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
grpc_oauth2_token_fetcher_credentials Class Referenceabstract

#include <oauth2_credentials.h>

Inheritance diagram for grpc_oauth2_token_fetcher_credentials:
Inheritance graph
[legend]

Public Member Functions

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
 

Protected Member Functions

virtual void fetch_oauth2 (grpc_credentials_metadata_request *req, grpc_polling_entity *pollent, grpc_iomgr_cb_func cb, grpc_core::Timestamp deadline)=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

int cmp_impl (const grpc_call_credentials *other) const override
 

Private Attributes

absl::optional< grpc_core::Sliceaccess_token_value_
 
gpr_mu mu_
 
grpc_oauth2_pending_get_request_metadatapending_requests_ = nullptr
 
grpc_polling_entity pollent_
 
gpr_timespec token_expiration_
 
bool token_fetch_pending_ = false
 

Additional Inherited Members

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

Detailed Description

Definition at line 112 of file oauth2_credentials.h.

Constructor & Destructor Documentation

◆ grpc_oauth2_token_fetcher_credentials()

grpc_oauth2_token_fetcher_credentials::grpc_oauth2_token_fetcher_credentials ( )

Definition at line 351 of file oauth2_credentials.cc.

◆ ~grpc_oauth2_token_fetcher_credentials()

grpc_oauth2_token_fetcher_credentials::~grpc_oauth2_token_fetcher_credentials ( )
override

Definition at line 149 of file oauth2_credentials.cc.

Member Function Documentation

◆ cmp_impl()

int grpc_oauth2_token_fetcher_credentials::cmp_impl ( const grpc_call_credentials other) const
inlineoverrideprivatevirtual

Implements grpc_call_credentials.

Definition at line 133 of file oauth2_credentials.h.

◆ debug_string()

std::string grpc_oauth2_token_fetcher_credentials::debug_string ( )
overridevirtual

Reimplemented from grpc_call_credentials.

Reimplemented in grpc_google_refresh_token_credentials.

Definition at line 358 of file oauth2_credentials.cc.

◆ fetch_oauth2()

virtual void grpc_oauth2_token_fetcher_credentials::fetch_oauth2 ( grpc_credentials_metadata_request req,
grpc_polling_entity pollent,
grpc_iomgr_cb_func  cb,
grpc_core::Timestamp  deadline 
)
protectedpure virtual

◆ GetRequestMetadata()

grpc_core::ArenaPromise< absl::StatusOr< grpc_core::ClientMetadataHandle > > grpc_oauth2_token_fetcher_credentials::GetRequestMetadata ( grpc_core::ClientMetadataHandle  initial_metadata,
const GetRequestMetadataArgs args 
)
overridevirtual

Implements grpc_call_credentials.

Definition at line 297 of file oauth2_credentials.cc.

◆ on_http_response()

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

Definition at line 248 of file oauth2_credentials.cc.

◆ type()

grpc_core::UniqueTypeName grpc_oauth2_token_fetcher_credentials::type ( ) const
overridevirtual

Implements grpc_call_credentials.

Reimplemented in grpc_google_refresh_token_credentials.

Definition at line 362 of file oauth2_credentials.cc.

Member Data Documentation

◆ access_token_value_

absl::optional<grpc_core::Slice> grpc_oauth2_token_fetcher_credentials::access_token_value_
private

Definition at line 140 of file oauth2_credentials.h.

◆ mu_

gpr_mu grpc_oauth2_token_fetcher_credentials::mu_
private

Definition at line 139 of file oauth2_credentials.h.

◆ pending_requests_

grpc_oauth2_pending_get_request_metadata* grpc_oauth2_token_fetcher_credentials::pending_requests_ = nullptr
private

Definition at line 143 of file oauth2_credentials.h.

◆ pollent_

grpc_polling_entity grpc_oauth2_token_fetcher_credentials::pollent_
private

Definition at line 144 of file oauth2_credentials.h.

◆ token_expiration_

gpr_timespec grpc_oauth2_token_fetcher_credentials::token_expiration_
private

Definition at line 141 of file oauth2_credentials.h.

◆ token_fetch_pending_

bool grpc_oauth2_token_fetcher_credentials::token_fetch_pending_ = false
private

Definition at line 142 of file oauth2_credentials.h.


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


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