AWS SDK for C++  1.8.59
AWS SDK for C++
Public Member Functions | Protected Member Functions | List of all members
Aws::Auth::CognitoCachingAnonymousCredentialsProvider Class Reference

#include <CognitoCachingCredentialsProvider.h>

+ Inheritance diagram for Aws::Auth::CognitoCachingAnonymousCredentialsProvider:

Public Member Functions

 CognitoCachingAnonymousCredentialsProvider (const std::shared_ptr< PersistentCognitoIdentityProvider > &identityRepository, const std::shared_ptr< CognitoIdentity::CognitoIdentityClient > &cognitoIdentityClient=nullptr)
 
 CognitoCachingAnonymousCredentialsProvider (const Aws::String &accountId, const Aws::String &identityPoolId, const std::shared_ptr< CognitoIdentity::CognitoIdentityClient > &cognitoIdentityClient=nullptr)
 
- Public Member Functions inherited from Aws::Auth::CognitoCachingCredentialsProvider
AWSCredentials GetAWSCredentials () override
 
- Public Member Functions inherited from Aws::Auth::AWSCredentialsProvider
 AWSCredentialsProvider ()
 
virtual ~AWSCredentialsProvider ()=default
 

Protected Member Functions

CognitoIdentity::Model::GetCredentialsForIdentityOutcome GetCredentialsFromCognito () const override
 
- Protected Member Functions inherited from Aws::Auth::CognitoCachingCredentialsProvider
 CognitoCachingCredentialsProvider (const std::shared_ptr< PersistentCognitoIdentityProvider > &m_identityRepository, const std::shared_ptr< CognitoIdentity::CognitoIdentityClient > &cognitoIdentityClient=nullptr)
 
bool IsTimeExpired (double expiry)
 
- Protected Member Functions inherited from Aws::Auth::AWSCredentialsProvider
virtual bool IsTimeToRefresh (long reloadFrequency)
 
virtual void Reload ()
 

Additional Inherited Members

- Protected Attributes inherited from Aws::Auth::CognitoCachingCredentialsProvider
std::shared_ptr< CognitoIdentity::CognitoIdentityClientm_cognitoIdentityClient
 
std::shared_ptr< PersistentCognitoIdentityProviderm_identityRepository
 
- Protected Attributes inherited from Aws::Auth::AWSCredentialsProvider
Aws::Utils::Threading::ReaderWriterLock m_reloadLock
 

Detailed Description

Uses cognito anonymous process to get credentials for a given identity pool. Use this if you don't have open ids to identify the user.

Definition at line 56 of file CognitoCachingCredentialsProvider.h.

Constructor & Destructor Documentation

◆ CognitoCachingAnonymousCredentialsProvider() [1/2]

Aws::Auth::CognitoCachingAnonymousCredentialsProvider::CognitoCachingAnonymousCredentialsProvider ( const std::shared_ptr< PersistentCognitoIdentityProvider > &  identityRepository,
const std::shared_ptr< CognitoIdentity::CognitoIdentityClient > &  cognitoIdentityClient = nullptr 
)

PersistentCognitoIdentityProvider is responsible for storing and retrieving cognito identity information from memory or file system.

◆ CognitoCachingAnonymousCredentialsProvider() [2/2]

Aws::Auth::CognitoCachingAnonymousCredentialsProvider::CognitoCachingAnonymousCredentialsProvider ( const Aws::String accountId,
const Aws::String identityPoolId,
const std::shared_ptr< CognitoIdentity::CognitoIdentityClient > &  cognitoIdentityClient = nullptr 
)

Member Function Documentation

◆ GetCredentialsFromCognito()

CognitoIdentity::Model::GetCredentialsForIdentityOutcome Aws::Auth::CognitoCachingAnonymousCredentialsProvider::GetCredentialsFromCognito ( ) const
overrideprotectedvirtual

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