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

#include <aws_external_account_credentials.h>

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

Public Member Functions

 AwsExternalAccountCredentials (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< AwsExternalAccountCredentialsCreate (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 AddMetadataRequestHeaders (grpc_http_request *request)
 
void BuildSubjectToken ()
 
void FinishRetrieveSubjectToken (std::string subject_token, grpc_error_handle error)
 
void OnRetrieveImdsV2SessionTokenInternal (grpc_error_handle error)
 
void OnRetrieveRegionInternal (grpc_error_handle error)
 
void OnRetrieveRoleNameInternal (grpc_error_handle error)
 
void OnRetrieveSigningKeysInternal (grpc_error_handle error)
 
void RetrieveImdsV2SessionToken ()
 
void RetrieveRegion ()
 
void RetrieveRoleName ()
 
void RetrieveSigningKeys ()
 
void RetrieveSubjectToken (HTTPRequestContext *ctx, const Options &options, std::function< void(std::string, grpc_error_handle)> cb) override
 

Static Private Member Functions

static void OnRetrieveImdsV2SessionToken (void *arg, grpc_error_handle error)
 
static void OnRetrieveRegion (void *arg, grpc_error_handle error)
 
static void OnRetrieveRoleName (void *arg, grpc_error_handle error)
 
static void OnRetrieveSigningKeys (void *arg, grpc_error_handle error)
 

Private Attributes

std::string access_key_id_
 
std::string audience_
 
std::function< void(std::string, grpc_error_handle)> cb_ = nullptr
 
std::string cred_verification_url_
 
HTTPRequestContextctx_ = nullptr
 
OrphanablePtr< HttpRequesthttp_request_
 
std::string imdsv2_session_token_
 
std::string imdsv2_session_token_url_
 
std::string region_
 
std::string region_url_
 
std::string regional_cred_verification_url_
 
std::string role_name_
 
std::string secret_access_key_
 
std::unique_ptr< AwsRequestSignersigner_
 
std::string token_
 
std::string url_
 

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::RefCounted< grpc_call_credentials >
 RefCounted (const char *trace=nullptr, intptr_t initial_refcount=1)
 

Detailed Description

Definition at line 37 of file aws_external_account_credentials.h.

Constructor & Destructor Documentation

◆ AwsExternalAccountCredentials()

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

Definition at line 92 of file aws_external_account_credentials.cc.

Member Function Documentation

◆ AddMetadataRequestHeaders()

void grpc_core::AwsExternalAccountCredentials::AddMetadataRequestHeaders ( grpc_http_request request)
private

Definition at line 225 of file aws_external_account_credentials.cc.

◆ BuildSubjectToken()

void grpc_core::AwsExternalAccountCredentials::BuildSubjectToken ( )
private

Definition at line 457 of file aws_external_account_credentials.cc.

◆ Create()

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

Definition at line 80 of file aws_external_account_credentials.cc.

◆ FinishRetrieveSubjectToken()

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

Definition at line 503 of file aws_external_account_credentials.cc.

◆ OnRetrieveImdsV2SessionToken()

void grpc_core::AwsExternalAccountCredentials::OnRetrieveImdsV2SessionToken ( void *  arg,
grpc_error_handle  error 
)
staticprivate

Definition at line 203 of file aws_external_account_credentials.cc.

◆ OnRetrieveImdsV2SessionTokenInternal()

void grpc_core::AwsExternalAccountCredentials::OnRetrieveImdsV2SessionTokenInternal ( grpc_error_handle  error)
private

Definition at line 210 of file aws_external_account_credentials.cc.

◆ OnRetrieveRegion()

void grpc_core::AwsExternalAccountCredentials::OnRetrieveRegion ( void *  arg,
grpc_error_handle  error 
)
staticprivate

Definition at line 281 of file aws_external_account_credentials.cc.

◆ OnRetrieveRegionInternal()

void grpc_core::AwsExternalAccountCredentials::OnRetrieveRegionInternal ( grpc_error_handle  error)
private

Definition at line 288 of file aws_external_account_credentials.cc.

◆ OnRetrieveRoleName()

void grpc_core::AwsExternalAccountCredentials::OnRetrieveRoleName ( void *  arg,
grpc_error_handle  error 
)
staticprivate

Definition at line 335 of file aws_external_account_credentials.cc.

◆ OnRetrieveRoleNameInternal()

void grpc_core::AwsExternalAccountCredentials::OnRetrieveRoleNameInternal ( grpc_error_handle  error)
private

Definition at line 342 of file aws_external_account_credentials.cc.

◆ OnRetrieveSigningKeys()

void grpc_core::AwsExternalAccountCredentials::OnRetrieveSigningKeys ( void *  arg,
grpc_error_handle  error 
)
staticprivate

Definition at line 401 of file aws_external_account_credentials.cc.

◆ OnRetrieveSigningKeysInternal()

void grpc_core::AwsExternalAccountCredentials::OnRetrieveSigningKeysInternal ( grpc_error_handle  error)
private

Definition at line 408 of file aws_external_account_credentials.cc.

◆ RetrieveImdsV2SessionToken()

void grpc_core::AwsExternalAccountCredentials::RetrieveImdsV2SessionToken ( )
private

Definition at line 171 of file aws_external_account_credentials.cc.

◆ RetrieveRegion()

void grpc_core::AwsExternalAccountCredentials::RetrieveRegion ( )
private

Definition at line 239 of file aws_external_account_credentials.cc.

◆ RetrieveRoleName()

void grpc_core::AwsExternalAccountCredentials::RetrieveRoleName ( )
private

Definition at line 305 of file aws_external_account_credentials.cc.

◆ RetrieveSigningKeys()

void grpc_core::AwsExternalAccountCredentials::RetrieveSigningKeys ( )
private

Definition at line 352 of file aws_external_account_credentials.cc.

◆ RetrieveSubjectToken()

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

Member Data Documentation

◆ access_key_id_

std::string grpc_core::AwsExternalAccountCredentials::access_key_id_
private

Definition at line 86 of file aws_external_account_credentials.h.

◆ audience_

std::string grpc_core::AwsExternalAccountCredentials::audience_
private

Definition at line 74 of file aws_external_account_credentials.h.

◆ cb_

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

Definition at line 95 of file aws_external_account_credentials.h.

◆ cred_verification_url_

std::string grpc_core::AwsExternalAccountCredentials::cred_verification_url_
private

Definition at line 92 of file aws_external_account_credentials.h.

◆ ctx_

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

Definition at line 94 of file aws_external_account_credentials.h.

◆ http_request_

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

Definition at line 75 of file aws_external_account_credentials.h.

◆ imdsv2_session_token_

std::string grpc_core::AwsExternalAccountCredentials::imdsv2_session_token_
private

Definition at line 89 of file aws_external_account_credentials.h.

◆ imdsv2_session_token_url_

std::string grpc_core::AwsExternalAccountCredentials::imdsv2_session_token_url_
private

Definition at line 81 of file aws_external_account_credentials.h.

◆ region_

std::string grpc_core::AwsExternalAccountCredentials::region_
private

Definition at line 84 of file aws_external_account_credentials.h.

◆ region_url_

std::string grpc_core::AwsExternalAccountCredentials::region_url_
private

Definition at line 78 of file aws_external_account_credentials.h.

◆ regional_cred_verification_url_

std::string grpc_core::AwsExternalAccountCredentials::regional_cred_verification_url_
private

Definition at line 80 of file aws_external_account_credentials.h.

◆ role_name_

std::string grpc_core::AwsExternalAccountCredentials::role_name_
private

Definition at line 85 of file aws_external_account_credentials.h.

◆ secret_access_key_

std::string grpc_core::AwsExternalAccountCredentials::secret_access_key_
private

Definition at line 87 of file aws_external_account_credentials.h.

◆ signer_

std::unique_ptr<AwsRequestSigner> grpc_core::AwsExternalAccountCredentials::signer_
private

Definition at line 91 of file aws_external_account_credentials.h.

◆ token_

std::string grpc_core::AwsExternalAccountCredentials::token_
private

Definition at line 88 of file aws_external_account_credentials.h.

◆ url_

std::string grpc_core::AwsExternalAccountCredentials::url_
private

Definition at line 79 of file aws_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:35