Virgil Security C++ SDK
|
Implementation of AccessTokenProviderInterface which provides constant AccessTokenInterface implementation. More...
#include <ConstAccessTokenProvider.h>
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. | |
Implementation of AccessTokenProviderInterface which provides constant AccessTokenInterface implementation.
virgil::sdk::jwt::providers::ConstAccessTokenProvider::ConstAccessTokenProvider | ( | std::shared_ptr< interfaces::AccessTokenInterface > | accessToken | ) |
Constructor.
accessToken | std::shared_ptr to implementation of AccessTokenInterface |
const std::shared_ptr<interfaces::AccessTokenInterface>& virgil::sdk::jwt::providers::ConstAccessTokenProvider::accessToken | ( | ) | const |
Getter.
|
virtual |
Provides cached access token.
tokenContext | do not have any influence on result in this implementation |
Implements virgil::sdk::jwt::interfaces::AccessTokenProviderInterface.