| 
    Virgil Security C++ SDK
    
   | 
 
Implementation of AccessTokenProvider which provides AccessToken using cache+renew callback. More...
#include <CachingJwtProvider.h>
  
 Public Member Functions | |
| CachingJwtProvider (std::function< std::future< std::string >(const TokenContext &)> renewJwtCallback) | |
| Constructor.  More... | |
| std::future< std::shared_ptr< interfaces::AccessTokenInterface > > | getToken (const TokenContext &tokenContext) | 
| Provides access token using callback or cached token.  More... | |
| const std::function< std::future< std::string >const TokenContext &)> & | renewJwtCallback () const | 
| Getter.  More... | |
| const std::shared_ptr< Jwt > & | jwt () const | 
| Getter.  More... | |
  Public Member Functions inherited from virgil::sdk::jwt::interfaces::AccessTokenProviderInterface | |
| virtual | ~AccessTokenProviderInterface ()=default | 
| Virtual destructor.  | |
Implementation of AccessTokenProvider which provides AccessToken using cache+renew callback.
| virgil::sdk::jwt::providers::CachingJwtProvider::CachingJwtProvider | ( | std::function< std::future< std::string >(const TokenContext &)> | renewJwtCallback | ) | 
Constructor.
| renewJwtCallback | std::function, which takes a TokenContext returns std::future with Jwt std::string | 
      
  | 
  virtual | 
Provides access token using callback or cached token.
| tokenContext | TokenContext provides context explaining why token is needed | 
Implements virgil::sdk::jwt::interfaces::AccessTokenProviderInterface.
| const std::shared_ptr<Jwt>& virgil::sdk::jwt::providers::CachingJwtProvider::jwt | ( | ) | const | 
Getter.
| const std::function<std::future<std::string>const TokenContext&)>& virgil::sdk::jwt::providers::CachingJwtProvider::renewJwtCallback | ( | ) | const | 
Getter.
 1.8.10