* Get algorithm claim * \return algorithm as string * \throw std::runtime_error If claim was not present * \throw std::bad_cast Claim was present but not a string (Should not happen in a valid token) */
| 2947 | * \throw std::bad_cast Claim was present but not a string (Should not happen in a valid token) |
| 2948 | */ |
| 2949 | typename json_traits::string_type get_algorithm() const { return get_header_claim("alg").as_string(); } |
| 2950 | /** |
| 2951 | * Get type claim |
| 2952 | * \return type as a string |