line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package JSON::WebToken::Constants; |
2
|
|
|
|
|
|
|
|
3
|
8
|
|
|
8
|
|
39
|
use strict; |
|
8
|
|
|
|
|
10
|
|
|
8
|
|
|
|
|
345
|
|
4
|
8
|
|
|
8
|
|
36
|
use warnings; |
|
8
|
|
|
|
|
11
|
|
|
8
|
|
|
|
|
230
|
|
5
|
8
|
|
|
8
|
|
30
|
use parent qw/Exporter/; |
|
8
|
|
|
|
|
11
|
|
|
8
|
|
|
|
|
44
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
my @error_code = qw/ |
8
|
|
|
|
|
|
|
ERROR_JWT_INVALID_PARAMETER |
9
|
|
|
|
|
|
|
ERROR_JWT_MISSING_SECRET |
10
|
|
|
|
|
|
|
ERROR_JWT_INVALID_SEGMENT_COUNT |
11
|
|
|
|
|
|
|
ERROR_JWT_INVALID_SEGMENT_ENCODING |
12
|
|
|
|
|
|
|
ERROR_JWT_UNWANTED_SIGNATURE |
13
|
|
|
|
|
|
|
ERROR_JWT_INVALID_SIGNATURE |
14
|
|
|
|
|
|
|
ERROR_JWT_NOT_SUPPORTED_SIGNING_ALGORITHM |
15
|
|
|
|
|
|
|
ERROR_JWT_UNACCEPTABLE_ALGORITHM |
16
|
|
|
|
|
|
|
/; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
our @EXPORT = @error_code; |
19
|
|
|
|
|
|
|
our @EXPORT_OK = (); |
20
|
|
|
|
|
|
|
our %EXPORT_TAGS = ( |
21
|
|
|
|
|
|
|
all => [@EXPORT, @EXPORT_OK], |
22
|
|
|
|
|
|
|
error_code => \@error_code, |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
use constant { |
26
|
8
|
|
|
|
|
829
|
ERROR_JWT_INVALID_PARAMETER => "invalid_parameter", |
27
|
|
|
|
|
|
|
ERROR_JWT_MISSING_SECRET => "missing_secret", |
28
|
|
|
|
|
|
|
ERROR_JWT_INVALID_SEGMENT_COUNT => "invalid_segment_count", |
29
|
|
|
|
|
|
|
ERROR_JWT_INVALID_SEGMENT_ENCODING => "invalid_segment_encoding", |
30
|
|
|
|
|
|
|
ERROR_JWT_UNWANTED_SIGNATURE => "unwanted_signature", |
31
|
|
|
|
|
|
|
ERROR_JWT_INVALID_SIGNATURE => "invalid_signature", |
32
|
|
|
|
|
|
|
ERROR_JWT_NOT_SUPPORTED_SIGNING_ALGORITHM => "not_supported_signing_algorithm", |
33
|
|
|
|
|
|
|
ERROR_JWT_UNACCEPTABLE_ALGORITHM => "unacceptable_algorithm", |
34
|
8
|
|
|
8
|
|
993
|
}; |
|
8
|
|
|
|
|
11
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
__END__ |