File Coverage

blib/lib/Net/OAuth/SignatureMethod/PLAINTEXT.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 2 0.0
total 16 18 88.8


line stmt bran cond sub pod time code
1             package Net::OAuth::SignatureMethod::PLAINTEXT;
2 5     5   32 use warnings;
  5         8  
  5         325  
3 5     5   25 use strict;
  5         9  
  5         647  
4              
5             sub sign {
6 13     13 0 70 my $self = shift;
7 13         21 my $request = shift;
8 13         65 return $request->signature_key;
9             }
10              
11             sub verify {
12 6     6 0 12 my $self = shift;
13 6         11 my $request = shift;
14 6         15 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<Net::OAuth>, L<http://oauth.net>
24              
25             =head1 AUTHOR
26              
27             Originally by Keith Grennan <kgrennan@cpan.org>
28              
29             Currently maintained by Robert Rothenberg <rrwo@cpan.org>
30              
31             =head1 COPYRIGHT & LICENSE
32              
33             Copyright 2007-2012, 2024-2025 Keith Grennan
34              
35             This program is free software; you can redistribute it and/or modify it
36             under the same terms as Perl itself.
37              
38             =cut
39              
40             1;