Class representing JWT Header content.
More...
#include <JwtHeaderContent.h>
Class representing JWT Header content.
| virgil::sdk::jwt::JwtHeaderContent::JwtHeaderContent |
( |
std::string |
keyIdentifier, |
|
|
std::string |
algorithm = "VEDS512", |
|
|
std::string |
type = "JWT", |
|
|
std::string |
contentType = "virgil-jwt;v=1" |
|
) |
| |
Constructor.
- Parameters
-
| keyIdentifier | identifier of public key which should be used to verify signature. Can be taken here |
| algorithm | used signature algorithm |
| type | token type |
| contentType | content type for this JWT |
| const std::string& virgil::sdk::jwt::JwtHeaderContent::algorithm |
( |
| ) |
const |
Getter.
- Returns
- used signature algorithm
| std::string virgil::sdk::jwt::JwtHeaderContent::base64Url |
( |
| ) |
const |
| const std::string& virgil::sdk::jwt::JwtHeaderContent::contentType |
( |
| ) |
const |
Getter.
- Returns
- content type for this JWT
| const std::string& virgil::sdk::jwt::JwtHeaderContent::keyIdentifier |
( |
| ) |
const |
Getter.
- Returns
- identifier of public key which should be used to verify signature
- Note
- Can be taken here
| static JwtHeaderContent virgil::sdk::jwt::JwtHeaderContent::parse |
( |
const std::string & |
base64url | ) |
|
|
static |
| const std::string& virgil::sdk::jwt::JwtHeaderContent::type |
( |
| ) |
const |
Getter.
- Returns
- token type
The documentation for this class was generated from the following file: