|
Virgil Security C++ SDK
|
Implementation of AccessTokenProviderInterface which provides generated JWTs. More...
#include <GeneratorJwtProvider.h>
Public Member Functions | |
| GeneratorJwtProvider (JwtGenerator jwtGenerator, std::string defaultIdentity, std::unordered_map< std::string, std::string > additionalData=std::unordered_map< std::string, std::string >()) | |
| Constructor. More... | |
| std::future< std::shared_ptr< interfaces::AccessTokenInterface > > | getToken (const TokenContext &tokenContext) |
| Provides new generated JWT. More... | |
| const JwtGenerator & | jwtGenerator () const |
| Getter. More... | |
| const std::string & | defaultIdentity () const |
| Getter. More... | |
| const std::unordered_map< std::string, std::string > & | additionalData () const |
| Getter. More... | |
Public Member Functions inherited from virgil::sdk::jwt::interfaces::AccessTokenProviderInterface | |
| virtual | ~AccessTokenProviderInterface ()=default |
| Virtual destructor. | |
Implementation of AccessTokenProviderInterface which provides generated JWTs.
| virgil::sdk::jwt::providers::GeneratorJwtProvider::GeneratorJwtProvider | ( | JwtGenerator | jwtGenerator, |
| std::string | defaultIdentity, | ||
| std::unordered_map< std::string, std::string > | additionalData = std::unordered_map< std::string, std::string >() |
||
| ) |
Constructor.
| jwtGenerator | JwtGenerator instance for generating new tokens |
| defaultIdentity | identity that will be used for generating token if tokenContext do not have it (e.g. for read operations) |
| additionalData | std::unordered_map with additional data, that will be present in token |
| const std::unordered_map<std::string, std::string>& virgil::sdk::jwt::providers::GeneratorJwtProvider::additionalData | ( | ) | const |
Getter.
| const std::string& virgil::sdk::jwt::providers::GeneratorJwtProvider::defaultIdentity | ( | ) | const |
Getter.
|
virtual |
Provides new generated JWT.
| tokenContext | TokenContext provides context explaining why token is needed |
Implements virgil::sdk::jwt::interfaces::AccessTokenProviderInterface.
| const JwtGenerator& virgil::sdk::jwt::providers::GeneratorJwtProvider::jwtGenerator | ( | ) | const |
Getter.
1.8.10