10Duke Scale C++ Client
|
#include <JWK.h>
Describes a JWK, Json Web Key.
IMPLEMENTATION NOTE: This currently only supports tenduke::crypto:PublicKey's. IMPLEMENTATION NOTE: Only subset of attributes / key types are supported.
Public Member Functions | |
JWK (std::string id, std::string type, const std::shared_ptr< const tenduke::crypto::PublicKey > &key) | |
Constructs new instance. | |
Static Public Member Functions | |
static tenduke::crypto::MessageDigest::Algorithm | mapFromJWTAlgorithm (const std::string &jwtAlgorithm) |
Maps JSON Web Token algorithm (alg ) to Algorithm. | |
Public Attributes | |
const std::string | id |
Id of the key, JWK property "kid". | |
const std::string | type |
Type of the key, JWK property "kty". | |
const std::shared_ptr< const tenduke::crypto::PublicKey > | key |
Parsed key representation. | |
tenduke::jwk::JWK::JWK | ( | std::string | id, |
std::string | type, | ||
const std::shared_ptr< const tenduke::crypto::PublicKey > & | key ) |
|
static |
Maps JSON Web Token algorithm (alg
) to Algorithm.
TODO: Is this in correct place?
jwtAlgorithm | - |