* Decode error conditions */
| 50 | * Decode error conditions |
| 51 | */ |
| 52 | enum class DecodeErrc |
| 53 | { |
| 54 | // No algorithms provided in decode API |
| 55 | EmptyAlgoList = 1, |
| 56 | // The JWT signature has incorrect format |
| 57 | SignatureFormatError, |
| 58 | // The JSON library failed to parse |
| 59 | JsonParseError, |
| 60 | // Algorithm field in header is missing |
| 61 | AlgHeaderMiss, |
| 62 | // Type field in header is missing |
| 63 | TypHeaderMiss, |
| 64 | // Unexpected type field value |
| 65 | TypMismatch, |
| 66 | // Found duplicate claims |
| 67 | DuplClaims, |
| 68 | // Key/Secret not passed as decode argument |
| 69 | KeyNotPresent, |
| 70 | // Key/secret passed as argument for NONE algorithm. |
| 71 | // Not a hard error. |
| 72 | KeyNotRequiredForNoneAlg, |
| 73 | }; |
| 74 | |
| 75 | /** |
| 76 | * Errors handled during verification process. |
nothing calls this directly
no outgoing calls
no test coverage detected