line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::ACME2::Challenge; |
2
|
|
|
|
|
|
|
|
3
|
5
|
|
|
5
|
|
66874
|
use strict; |
|
5
|
|
|
|
|
16
|
|
|
5
|
|
|
|
|
137
|
|
4
|
5
|
|
|
5
|
|
22
|
use warnings; |
|
5
|
|
|
|
|
8
|
|
|
5
|
|
|
|
|
139
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
=encoding utf-8 |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 NAME |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
Net::ACME2::Challenge |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 DESCRIPTION |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
The ACME Challenge object. |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
You probably won’t instantiate these directly; they’re created automatically |
17
|
|
|
|
|
|
|
as part of L instantiation. |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=cut |
20
|
|
|
|
|
|
|
|
21
|
5
|
|
|
5
|
|
396
|
use parent qw( Net::ACME2::AccessorBase ); |
|
5
|
|
|
|
|
253
|
|
|
5
|
|
|
|
|
24
|
|
22
|
|
|
|
|
|
|
|
23
|
5
|
|
|
5
|
|
958
|
use Net::ACME2::Error (); |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
180
|
|
24
|
|
|
|
|
|
|
|
25
|
5
|
|
|
|
|
689
|
use constant _ACCESSORS => ( |
26
|
|
|
|
|
|
|
'url', |
27
|
|
|
|
|
|
|
'type', |
28
|
|
|
|
|
|
|
'status', |
29
|
|
|
|
|
|
|
'validated', |
30
|
|
|
|
|
|
|
'token', |
31
|
5
|
|
|
5
|
|
25
|
); |
|
5
|
|
|
|
|
9
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 ACCESSORS |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
These provide text strings as defined in the ACME specification. |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=over |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=item * B |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=item * B |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=item * B |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=item * B |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=item * B |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=back |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
An C accessor is also provided, which returns the error object |
52
|
|
|
|
|
|
|
as a L instance (or undef if there is no error). |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=cut |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
sub error { |
57
|
1
|
|
|
1
|
0
|
5
|
my ($self) = @_; |
58
|
|
|
|
|
|
|
|
59
|
1
|
|
33
|
|
|
7
|
return $self->{'_error'} && do { |
60
|
|
|
|
|
|
|
my $obj = Net::ACME2::Error->new( %{ $self->{'_error'} } ); |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
# Do this to retain backward compatibility with pre-0.28 callers. |
63
|
|
|
|
|
|
|
@{$obj}{ keys %{ $self->{'_error'} } } = values %{ $self->{'_error'} }; |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
$obj; |
66
|
|
|
|
|
|
|
}; |
67
|
|
|
|
|
|
|
} |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
1; |