OAuth/SignatureMethod/PLAINTEXT.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 2 totaltotal 91.3% 21 / 23 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« OAuth/XauthAccessTokenRequest.pm ↑ Summary OAuth/RequestTokenRequest.pm »
1 package Net::OAuth::SignatureMethod::PLAINTEXT;
2  
3 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 5 ▶use base 'Net::OAuth::SignatureMethod';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 13 ▶sub sign {
Subroutine sign: called CC=1 SCAR=0.0
Pod undocumented
9 13 my $self = shift;
10 13 my $request = shift;
11 13 return $request->signature_key;
12 }
13  
14 6 ▶sub verify {
Subroutine verify: called CC=1 SCAR=0.0
Pod undocumented
15 6 my $self = shift;
16 6 my $request = shift;
17 6 return $self->secure_compare( $request->signature, $self->sign($request) );
18 }
19  
20 =head1 NAME
21  
22 Net::OAuth::SignatureMethod::PLAINTEXT - PLAINTEXT Signature Method for OAuth protocol
23  
24 =head1 SEE ALSO
25  
26 L<Net::OAuth>, L<http://oauth.net>
27  
28 =head1 AUTHOR
29  
30 Originally by Keith Grennan <foss@nearlyfree.org>
31  
32 Currently maintained by Robert Rothenberg <perl@rhizomnic.com>
33  
34 =head1 COPYRIGHT & LICENSE
35  
36 Copyright 2007-2012, 2024-2026 Keith Grennan
37  
38 This program is free software; you can redistribute it and/or modify it
39 under the same terms as Perl itself.
40  
41 =cut
42  
43 5 1;
« OAuth/XauthAccessTokenRequest.pm ↑ Summary OAuth/RequestTokenRequest.pm »