line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::SSLLabs::ChainCert; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
19
|
use strict; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
84
|
|
4
|
3
|
|
|
3
|
|
15
|
use warnings; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
1396
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.33'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
0
|
|
|
0
|
1
|
|
my ( $class, $json ) = @_; |
10
|
0
|
|
|
|
|
|
my $self = $json; |
11
|
0
|
|
|
|
|
|
bless $self, $class; |
12
|
0
|
|
|
|
|
|
return $self; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub subject { |
16
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
17
|
0
|
|
|
|
|
|
return $self->{subject}; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub label { |
21
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
22
|
0
|
|
|
|
|
|
return $self->{label}; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub not_before { |
26
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
27
|
0
|
|
|
|
|
|
return $self->{notBefore}; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub not_after { |
31
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
32
|
0
|
|
|
|
|
|
return $self->{notAfter}; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub issuer_subject { |
36
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
37
|
0
|
|
|
|
|
|
return $self->{issuerSubject}; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub issuer_label { |
41
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
42
|
0
|
|
|
|
|
|
return $self->{issuerLabel}; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub sig_alg { |
46
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
47
|
0
|
|
|
|
|
|
return $self->{sigAlg}; |
48
|
|
|
|
|
|
|
} |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
sub issues { |
51
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
52
|
0
|
|
|
|
|
|
return $self->{issues}; |
53
|
|
|
|
|
|
|
} |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
sub key_alg { |
56
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
57
|
0
|
|
|
|
|
|
return $self->{keyAlg}; |
58
|
|
|
|
|
|
|
} |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
sub key_size { |
61
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
62
|
0
|
|
|
|
|
|
return $self->{keySize}; |
63
|
|
|
|
|
|
|
} |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
sub key_strength { |
66
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
67
|
0
|
|
|
|
|
|
return $self->{keyStrength}; |
68
|
|
|
|
|
|
|
} |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
sub revocation_status { |
71
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
72
|
0
|
|
|
|
|
|
return $self->{revocationStatus}; |
73
|
|
|
|
|
|
|
} |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
sub crl_revocation_status { |
76
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
77
|
0
|
|
|
|
|
|
return $self->{crlRevocationStatus}; |
78
|
|
|
|
|
|
|
} |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
sub ocsp_revocation_status { |
81
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
82
|
0
|
|
|
|
|
|
return $self->{ocspRevocationStatus}; |
83
|
|
|
|
|
|
|
} |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
sub raw { |
86
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
87
|
0
|
|
|
|
|
|
return $self->{raw}; |
88
|
|
|
|
|
|
|
} |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
1; |
91
|
|
|
|
|
|
|
__END__ |