forked from luciferous/jwt
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
ExceptionCodes.php
61 lines (55 loc) · 2.27 KB
/
ExceptionCodes.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
namespace Firebase\JWT;
class ExceptionCodes
{
public const KEY_NOT_EMPTY = 1;
public const WRONG_NUMBER_OF_SEGMENTS = 2;
public const INVALID_HEADER_ENCODING = 3;
public const INVALID_CLAIMS_ENCODING = 4;
public const PAYLOAD_NOT_JSON = 5;
public const EMPTY_ALGORITHM = 6;
public const DECODE_ALGORITHM_NOT_SUPPORTED = 7;
public const INCORRECT_KEY_FOR_ALGORITHM = 8;
public const SIGNATURE_VERIFICATION_FAILED = 9;
public const NBF_PRIOR_TO_DATE = 10;
public const IAT_PRIOR_TO_DATE = 11;
public const TOKEN_EXPIRED = 12;
public const SIGN_ALGORITHM_NOT_SUPPORTED = 13;
public const KEY_IS_NOT_STRING = 14;
public const OPENSSL_CAN_NOT_SIGN_DATA = 15;
public const SODIUM_KEY_IS_NOT_STRING = 16;
public const SODIUM_EXCEPTION = 17;
public const SIGN_GENERAL_EXCEPTION = 18;
public const VERIFY_ALGORITHM_NOT_SUPPORTED = 19;
public const VERIFY_OPEN_SSL_ERROR = 20;
public const VERIFY_SODIUM_NOT_AVAILABLE = 21;
public const VERIFY_KEY_MATERIAL_IS_NOT_STRING = 22;
public const VERIFY_SODIUM_EXCEPTION = 23;
public const VERIFY_KEY_IS_NOT_STRING = 24;
public const DECODED_JSON_IS_NULL = 25;
public const ENCODED_JSON_IS_NULL = 26;
public const INVALID_JSON = 27;
public const KID_IS_EMPTY = 28;
public const KID_IS_INVALID = 29;
public const JSON_ERROR = 30;
public const KEY_ID_NOT_FOUND = 31;
public const OFFSET_SET_METHOD_NOT_IMPLEMENTED = 32;
public const OFFSET_UNSET_METHOD_NOT_IMPLEMENTED = 33;
public const JWKS_URI_IS_EMPTY = 34;
public const JWK_MISSING_KEYS = 35;
public const JWT_KEYS_IS_EMPTY = 36;
public const JWT_ALGORITHM_NOT_SUPPORTED = 37;
public const JWK_IS_EMPTY = 38;
public const JWT_MISSING_KTY_PARAMETER = 39;
public const JWT_MISSING_ALG_PARAMETER = 40;
public const JWT_RSA_KEYS_NOT_SUPPORTED = 41;
public const JWT_RSA_KEYS_MISSING_N_AND_E = 42;
public const JWT_OPEN_SSL_ERROR = 43;
public const JWK_EC_D_IS_NOT_SET = 44;
public const JWT_EC_CRV_IS_EMPTY = 45;
public const JWK_UNSUPPORTED_EC_CURVE = 46;
public const JWT_X_AND_Y_ARE_EMPTY = 47;
public const KEY_MATERIAL_IS_INVALID = 48;
public const KEY_MATERIAL_IS_EMPTY = 49;
public const KEY_ALGORITHM_IS_EMPTY = 50;
}