line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package JSON::WebToken::Constants; |
2
|
|
|
|
|
|
|
|
3
|
9
|
|
|
9
|
|
51
|
use strict; |
|
9
|
|
|
|
|
16
|
|
|
9
|
|
|
|
|
504
|
|
4
|
9
|
|
|
9
|
|
51
|
use warnings; |
|
9
|
|
|
|
|
18
|
|
|
9
|
|
|
|
|
303
|
|
5
|
9
|
|
|
9
|
|
45
|
use parent qw/Exporter/; |
|
9
|
|
|
|
|
16
|
|
|
9
|
|
|
|
|
66
|
|
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
|
|
|
|
|
|
|
/; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
our @EXPORT = @error_code; |
18
|
|
|
|
|
|
|
our @EXPORT_OK = (); |
19
|
|
|
|
|
|
|
our %EXPORT_TAGS = ( |
20
|
|
|
|
|
|
|
all => [@EXPORT, @EXPORT_OK], |
21
|
|
|
|
|
|
|
error_code => \@error_code, |
22
|
|
|
|
|
|
|
); |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
use constant { |
25
|
9
|
|
|
|
|
1309
|
ERROR_JWT_INVALID_PARAMETER => "invalid_parameter", |
26
|
|
|
|
|
|
|
ERROR_JWT_MISSING_SECRET => "missing_secret", |
27
|
|
|
|
|
|
|
ERROR_JWT_INVALID_SEGMENT_COUNT => "invalid_segment_count", |
28
|
|
|
|
|
|
|
ERROR_JWT_INVALID_SEGMENT_ENCODING => "invalid_segment_encoding", |
29
|
|
|
|
|
|
|
ERROR_JWT_UNWANTED_SIGNATURE => "unwanted_signature", |
30
|
|
|
|
|
|
|
ERROR_JWT_INVALID_SIGNATURE => "invalid_signature", |
31
|
|
|
|
|
|
|
ERROR_JWT_NOT_SUPPORTED_SIGNING_ALGORITHM => "not_supported_signing_algorithm", |
32
|
9
|
|
|
9
|
|
1388
|
}; |
|
9
|
|
|
|
|
20
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |
35
|
|
|
|
|
|
|
__END__ |