LibJWT Dev
The C JSON Web Token Library +JWK +JWKS
|
Structural representation of a JWK. More...
#include <jwt.h>
Data Fields | |
jwk_key_type_t | kty |
The key type of this key | |
char * | pem |
If not NULL, contains PEM string of this key | |
jwt_crypto_provider_t | provider |
Crypto provider that owns this key | |
void * | provider_data |
Internal data used by the provider | |
int | is_private_key |
Whether this is a public or private key | |
char | curve [256] |
Curve name of an "EC" or "OKP" key | |
size_t | bits |
The number of bits in the key (may be 0) | |
int | error |
Shows there is an error present in this key (unusable) | |
char | error_msg [256] |
Descriptive message for jwk_item_t::error | |
jwk_pub_key_use_t | use |
Value of the JWK "use" attribute | |
jwk_key_op_t | key_ops |
Bitwise flags of "key_ops" supported for this key | |
jwt_alg_t | alg |
Valid "alg" that this key can be used for | |
char * | kid |
RFC-7517 Sec 4.5 | |
Structural representation of a JWK.
This data structure is produced by importing a JWK or JWKS into a jwk_set_t object. Generally, you would not change any values here and only use this to probe the internal parser and possibly to decide whether a key applies to certain jwt_t for verification or signing.
jwt_alg_t jwk_item_t::alg |
size_t jwk_item_t::bits |
char jwk_item_t::curve[256] |
int jwk_item_t::error |
char jwk_item_t::error_msg[256] |
Descriptive message for jwk_item_t::error
int jwk_item_t::is_private_key |
jwk_key_op_t jwk_item_t::key_ops |
char* jwk_item_t::kid |
jwk_key_type_t jwk_item_t::kty |
char* jwk_item_t::pem |
jwt_crypto_provider_t jwk_item_t::provider |
void* jwk_item_t::provider_data |
jwk_pub_key_use_t jwk_item_t::use |