MCPcopy Create free account
hub / github.com/Thalhammer/jwt-cpp / get_algorithm

Method get_algorithm

include/jwt-cpp/jwt.h:3904–3904  ·  view source on GitHub ↗

* 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) */

Source from the content-addressed store, hash-verified

3902 * \throw std::bad_cast Claim was present but not a string (Should not happen in a valid token)
3903 */
3904 typename json_traits::string_type get_algorithm() const { return get_jwk_claim("alg").as_string(); }
3905
3906 /**
3907 * Get key id claim

Callers 9

TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
verifyMethod · 0.45

Calls 1

as_stringMethod · 0.45

Tested by 8

TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36