line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package JSON::WebToken::Constants; |
2
|
|
|
|
|
|
|
|
3
|
8
|
|
|
8
|
|
36
|
use strict; |
|
8
|
|
|
|
|
9
|
|
|
8
|
|
|
|
|
351
|
|
4
|
8
|
|
|
8
|
|
40
|
use warnings; |
|
8
|
|
|
|
|
9
|
|
|
8
|
|
|
|
|
262
|
|
5
|
8
|
|
|
8
|
|
32
|
use parent qw/Exporter/; |
|
8
|
|
|
|
|
9
|
|
|
8
|
|
|
|
|
46
|
|
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
|
|
|
|
|
876
|
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__ |