* Get the URL safe base64 encoded string * of the header. */ TODO: error code ?
| 436 | */ |
| 437 | //TODO: error code ? |
| 438 | std::string encode(bool pprint = false) |
| 439 | { |
| 440 | return base64_encode(pprint); |
| 441 | } |
| 442 | |
| 443 | /** |
| 444 | * Decodes the base64 encoded string to JWT header. |