OAuth/SignatureMethod/PLAINTEXT.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 2 totaltotal 89.4% 17 / 19 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
sign
1.0
CRAP 1.0
« OAuth/ConsumerRequest.pm ↑ Summary OAuth/YahooAccessTokenRefreshRequest.pm »
1 package Net::OAuth::SignatureMethod::PLAINTEXT;
2 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 sub sign {
6 13 ▶ my $self = shift;
Subroutine sign: called CC=1 SCAR=0.0
Pod undocumented
7 13 my $request = shift;
8 13 return $request->signature_key;
9 }
10  
11 sub verify {
12 6 ▶ my $self = shift;
Subroutine verify: called CC=1 SCAR=0.0
Pod undocumented
13 6 my $request = shift;
14 6 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 <foss@nearlyfree.org>
28  
29 Currently maintained by Robert Rothenberg <perl@rhizomnic.com>
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 5 1;
« OAuth/ConsumerRequest.pm ↑ Summary OAuth/YahooAccessTokenRefreshRequest.pm »