jwt_claims_helpers_grp(3)

πŸ“¦
version 3.3.3 Β· 2 versions
, in ubuntu stonking

πŸ¦‹ NAME πŸ¦‹

okay so hi bestie πŸ’– this page is jwt_claims_helpers_grp, and it's literally just called Utility Functions. it lives in the Library Functions Manual, section 3, so when you wanna summon it you go man 3 jwt_claims_helpers_grp and it shows up ready to spill. no cap.


🌈 SYNOPSIS 🌈

🫢 Topics

  • Getters
  • Setters

πŸŽ€ Data Structures

  • struct jwt_value_t β€” Data type for get and set actions for JWT headers and claims.

✨ Enumerations

  • enum jwt_value_type_t { JWT_VALUE_NONE = 0, JWT_VALUE_INT, JWT_VALUE_STR, JWT_VALUE_BOOL, JWT_VALUE_JSON, JWT_VALUE_INVALID } β€” Value types for claims and headers.
  • enum jwt_value_error_t { JWT_VALUE_ERR_NONE = 0, JWT_VALUE_ERR_EXIST, JWT_VALUE_ERR_NOEXIST, JWT_VALUE_ERR_TYPE, JWT_VALUE_ERR_INVALID, JWT_VALUE_ERR_NOMEM } β€” Error values for header and claim requests.
  • enum jwt_claims_t { JWT_CLAIM_ISS = 0x0001, JWT_CLAIM_SUB = 0x0002, JWT_CLAIM_AUD = 0x0004, JWT_CLAIM_EXP = 0x0008, JWT_CLAIM_NBF = 0x0010, JWT_CLAIM_IAT = 0x0020, JWT_CLAIM_JTI = 0x0040 } β€” WFC defined claims.

πŸ’œ Detailed Description πŸ’œ

not me opening this section and it's β€” empty. 😭 like, the heading is there, the energy is there, and then nothing. literally zero words. it's giving "left on read". anyway, moving on, the real tea is right below ⬇️


πŸ”₯ Enumeration Type Documentation πŸ”₯

🌸 enum jwt_claims_t

WFC defined claims. periodt. here's the full roster of enumerators:

  • JWT_CLAIM_ISS β€” :page_facing_up: RFC-7519 Sec 4.1.1 "iss"
  • JWT_CLAIM_SUB β€” :page_facing_up: RFC-7519 Sec 4.1.2 "sub"
  • JWT_CLAIM_AUD β€” :page_facing_up: RFC-7519 Sec 4.1.3 "aud"
  • JWT_CLAIM_EXP β€” :page_facing_up: RFC-7519 Sec 4.1.4 "exp"
  • JWT_CLAIM_NBF β€” :page_facing_up: RFC-7519 Sec 4.1.5 "nbf"
  • JWT_CLAIM_IAT β€” :page_facing_up: RFC-7519 Sec 4.1.6 "iat"
  • JWT_CLAIM_JTI β€” :page_facing_up: RFC-7519 Sec 4.1.7 "jti"

πŸ’… enum jwt_value_error_t

Error values for header and claim requests. aka the receipts for when things go right or go very wrong 🫠

  • JWT_VALUE_ERR_NONE β€” No error, success. the dream. the icon. we love her. πŸ‘‘
  • JWT_VALUE_ERR_EXIST β€” Item exists (when setting).
  • JWT_VALUE_ERR_NOEXIST β€” Item doesn't exist (when getting).
  • JWT_VALUE_ERR_TYPE β€” Item is not of the type requested. mismatch energy. πŸ’€
  • JWT_VALUE_ERR_INVALID β€” Invalid request (general error).
  • JWT_VALUE_ERR_NOMEM β€” Memory allocation error. rip. 😭

⭐ enum jwt_value_type_t

Value types for claims and headers. the whole type menu, fr fr:

  • JWT_VALUE_NONE β€” No type (do not use this). seriously bestie, don't. that's the original's words, not mine. 🚫
  • JWT_VALUE_INT β€” Integer.
  • JWT_VALUE_STR β€” String.
  • JWT_VALUE_BOOL β€” Boolean.
  • JWT_VALUE_JSON β€” JSON String ({..} or [..]).
  • JWT_VALUE_INVALID β€” Invalid (used internally).

🧚 Author 🧚

Generated automatically by Doxygen for LibJWT from the source code. so like, nobody's out here claiming credit personally β€” the robot did it. iconic of it honestly. πŸ€–βœ¨


and that's the whole page, bestie! πŸŽ€ this was LibJWT, Version 3.3.3, in the Library Functions Manual β€” generated by Doxygen, so if you spot anything cursed in here, go tell the source code, not me. πŸ’– mwah, slay, go decode a token. πŸ¦‹
πŸ“¦ where this page comes from