line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::OAuth::SignatureMethod::PLAINTEXT; |
2
|
5
|
|
|
5
|
|
29
|
use warnings; |
|
5
|
|
|
|
|
8
|
|
|
5
|
|
|
|
|
158
|
|
3
|
5
|
|
|
5
|
|
28
|
use strict; |
|
5
|
|
|
|
|
41
|
|
|
5
|
|
|
|
|
650
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
sub sign { |
6
|
13
|
|
|
13
|
0
|
65
|
my $self = shift; |
7
|
13
|
|
|
|
|
17
|
my $request = shift; |
8
|
13
|
|
|
|
|
76
|
return $request->signature_key; |
9
|
|
|
|
|
|
|
} |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub verify { |
12
|
6
|
|
|
6
|
0
|
12
|
my $self = shift; |
13
|
6
|
|
|
|
|
9
|
my $request = shift; |
14
|
6
|
|
|
|
|
19
|
return $request->signature eq $self->sign($request); |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 NAME |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
Net::OAuth::SignatureMethod::PLAINTEXT - PLAINTEXT Signature Method for OAuth protocol |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 SEE ALSO |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
L, L |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 AUTHOR |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
Keith Grennan, C<< >> |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
Copyright 2007 Keith Grennan, all rights reserved. |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it |
34
|
|
|
|
|
|
|
under the same terms as Perl itself. |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=cut |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |