Virgil Security C++ SDK
Public Member Functions | List of all members
virgil::sdk::jwt::providers::ConstAccessTokenProvider Class Reference

Implementation of AccessTokenProviderInterface which provides constant AccessTokenInterface implementation. More...

#include <ConstAccessTokenProvider.h>

Inheritance diagram for virgil::sdk::jwt::providers::ConstAccessTokenProvider:
virgil::sdk::jwt::interfaces::AccessTokenProviderInterface

Public Member Functions

 ConstAccessTokenProvider (std::shared_ptr< interfaces::AccessTokenInterface > accessToken)
 Constructor. More...
 
std::future< std::shared_ptr< interfaces::AccessTokenInterface > > getToken (const TokenContext &tokenContext)
 Provides cached access token. More...
 
const std::shared_ptr< interfaces::AccessTokenInterface > & accessToken () const
 Getter. More...
 
- Public Member Functions inherited from virgil::sdk::jwt::interfaces::AccessTokenProviderInterface
virtual ~AccessTokenProviderInterface ()=default
 Virtual destructor.
 

Detailed Description

Implementation of AccessTokenProviderInterface which provides constant AccessTokenInterface implementation.

Constructor & Destructor Documentation

virgil::sdk::jwt::providers::ConstAccessTokenProvider::ConstAccessTokenProvider ( std::shared_ptr< interfaces::AccessTokenInterface accessToken)

Constructor.

Parameters
accessTokenstd::shared_ptr to implementation of AccessTokenInterface

Member Function Documentation

const std::shared_ptr<interfaces::AccessTokenInterface>& virgil::sdk::jwt::providers::ConstAccessTokenProvider::accessToken ( ) const

Getter.

Returns
cached std::shared_ptr to implementation of AccessTokenInterface
std::future<std::shared_ptr<interfaces::AccessTokenInterface> > virgil::sdk::jwt::providers::ConstAccessTokenProvider::getToken ( const TokenContext tokenContext)
virtual

Provides cached access token.

Parameters
tokenContextdo not have any influence on result in this implementation
Returns
std::future with cached std::shared_ptr to implementation of AccessTokenInterface

Implements virgil::sdk::jwt::interfaces::AccessTokenProviderInterface.


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