Class representing JWT Body content.
More...
#include <JwtBodyContent.h>
Class representing JWT Body content.
virgil::sdk::jwt::JwtBodyContent::JwtBodyContent |
( |
std::string |
appId, |
|
|
std::string |
identity, |
|
|
std::time_t |
expiresAt, |
|
|
std::time_t |
issuedAt, |
|
|
std::unordered_map< std::string, std::string > |
additionalData = std::unordered_map< std::string, std::string >() |
|
) |
| |
Constructor.
- Parameters
-
appId | std::string with issuer containing application id. Can be taken here |
identity | std::string with identity (must be equal to RawSignedModel identity when publishing card) |
expiresAt | std::time with expiration date of token |
issuedAt | std::time with issued date of token |
additionalData | std::unordered_map with additional data |
const std::unordered_map<std::string, std::string>& virgil::sdk::jwt::JwtBodyContent::additionalData |
( |
| ) |
const |
Getter.
- Returns
- std::unordered_map with additional data
const std::string& virgil::sdk::jwt::JwtBodyContent::appId |
( |
| ) |
const |
Getter.
- Returns
- std::string with issuer containing application id
- Note
- Can be taken here
std::string virgil::sdk::jwt::JwtBodyContent::base64Url |
( |
| ) |
const |
std::time_t virgil::sdk::jwt::JwtBodyContent::expiresAt |
( |
| ) |
const |
Getter.
- Returns
- std::time with expiration date of token
const std::string& virgil::sdk::jwt::JwtBodyContent::identity |
( |
| ) |
const |
Getter.
- Returns
- std::string with identity
- Note
- must be equal to RawSignedModel identity when publishing card
std::time_t virgil::sdk::jwt::JwtBodyContent::issuedAt |
( |
| ) |
const |
Getter.
- Returns
- std::time with issued date of token
static JwtBodyContent virgil::sdk::jwt::JwtBodyContent::parse |
( |
const std::string & |
base64url | ) |
|
|
static |
The documentation for this class was generated from the following file: