line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::SSLLabs::Endpoint; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
19
|
use strict; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
85
|
|
4
|
3
|
|
|
3
|
|
14
|
use warnings; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
71
|
|
5
|
3
|
|
|
3
|
|
1395
|
use WebService::SSLLabs::EndpointDetails(); |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
1357
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.33'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub new { |
10
|
0
|
|
|
0
|
1
|
|
my ( $class, $json ) = @_; |
11
|
0
|
|
|
|
|
|
my $self = $json; |
12
|
0
|
0
|
|
|
|
|
if ( defined $self->{details} ) { |
13
|
|
|
|
|
|
|
$self->{details} = |
14
|
0
|
|
|
|
|
|
WebService::SSLLabs::EndpointDetails->new( $self->{details} ); |
15
|
|
|
|
|
|
|
} |
16
|
0
|
|
|
|
|
|
bless $self, $class; |
17
|
0
|
|
|
|
|
|
return $self; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub ready { |
21
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
22
|
0
|
0
|
0
|
|
|
|
if ( defined $self->{statusMessage} |
23
|
|
|
|
|
|
|
&& $self->{statusMessage} =~ /^READY$/ismx ) |
24
|
|
|
|
|
|
|
{ |
25
|
0
|
|
|
|
|
|
return $self; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
else { |
28
|
0
|
|
|
|
|
|
return; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub ip_address { |
33
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
34
|
0
|
|
|
|
|
|
return $self->{ipAddress}; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub is_exceptional { |
38
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
39
|
0
|
0
|
|
|
|
|
return $self->{isExceptional} ? 1 : 0; |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub delegation { |
43
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
44
|
0
|
|
|
|
|
|
return $self->{delegation}; |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
sub has_warnings { |
48
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
49
|
0
|
0
|
|
|
|
|
return $self->{hasWarnings} ? 1 : 0; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
sub grade_trust_ignored { |
53
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
54
|
0
|
|
|
|
|
|
return $self->{gradeTrustIgnored}; |
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
sub status_message { |
58
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
59
|
0
|
|
|
|
|
|
return $self->{statusMessage}; |
60
|
|
|
|
|
|
|
} |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
sub duration { |
63
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
64
|
0
|
|
|
|
|
|
return $self->{duration}; |
65
|
|
|
|
|
|
|
} |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
sub grade { |
68
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
69
|
0
|
|
|
|
|
|
return $self->{grade}; |
70
|
|
|
|
|
|
|
} |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
sub eta { |
73
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
74
|
0
|
|
|
|
|
|
return $self->{eta}; |
75
|
|
|
|
|
|
|
} |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
sub progress { |
78
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
79
|
0
|
|
|
|
|
|
return $self->{progress}; |
80
|
|
|
|
|
|
|
} |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
sub server_name { |
83
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
84
|
0
|
|
|
|
|
|
return $self->{serverName}; |
85
|
|
|
|
|
|
|
} |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
sub details { |
88
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
89
|
0
|
|
|
|
|
|
return $self->{details}; |
90
|
|
|
|
|
|
|
} |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
1; |
93
|
|
|
|
|
|
|
__END__ |