Virgil Security C++ SDK
Public Member Functions | List of all members
virgil::sdk::jwt::interfaces::AccessTokenProviderInterface Class Referenceabstract

Interface responsible for providing AccessToken. More...

#include <AccessTokenProviderInterface.h>

Inheritance diagram for virgil::sdk::jwt::interfaces::AccessTokenProviderInterface:
virgil::sdk::jwt::providers::CachingJwtProvider virgil::sdk::jwt::providers::CallbackJwtProvider virgil::sdk::jwt::providers::ConstAccessTokenProvider virgil::sdk::jwt::providers::GeneratorJwtProvider

Public Member Functions

virtual std::future< std::shared_ptr< AccessTokenInterface > > getToken (const TokenContext &tokenContext)=0
 Provides access token. More...
 
virtual ~AccessTokenProviderInterface ()=default
 Virtual destructor.
 

Detailed Description

Interface responsible for providing AccessToken.

Member Function Documentation

virtual std::future<std::shared_ptr<AccessTokenInterface> > virgil::sdk::jwt::interfaces::AccessTokenProviderInterface::getToken ( const TokenContext tokenContext)
pure virtual

Provides access token.

Parameters
tokenContextTokenContext provides context explaining why token is needed
Returns
std::future with std::shared_ptr to AccessTokenInterface implementation

Implemented in virgil::sdk::jwt::providers::GeneratorJwtProvider, virgil::sdk::jwt::providers::CachingJwtProvider, virgil::sdk::jwt::providers::CallbackJwtProvider, and virgil::sdk::jwt::providers::ConstAccessTokenProvider.


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