package OAuth::Lite2::Server::GrantHandler; use strict; use warnings; sub new { my $class = shift; bless {}, $class; } sub handle_request { my ($self, $ctx) = @_; die "abstract method"; } =head1 NAME OAuth::Lite2::Server::GrantHandler - base class of each grant_type handler =head1 SYNOPSIS my $handler = OAuth::Lite2::Server::GrantHandler->new; my $res = $handler->handle_request( $ctx ); =head1 METHODS =head2 new Constructor =head2 handle_request( $ctx ) processes passed L, and return hash represents that includes response-parameters. my $res = $handler->handle_request( $ctx ); =head1 SEE ALSO L L L L =head1 AUTHOR Lyo Kato, Elyo.kato@gmail.comE =head1 COPYRIGHT AND LICENSE Copyright (C) 2010 by Lyo Kato This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available. =cut 1;