| 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; | |