Daniel P. Berrangé > Authen-PAAS-1.1.1 > Authen::PAAS::SimpleCallback

Download:
Authen-PAAS-1.1.1.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View Bugs
Report a bug
Module Version: 1.0.0   Source  

NAME ^

Authen::PAAS::SimpleCallback - A callback implementation with static data

SYNOPSIS ^

  use Authen::PAAS::SimpleCallback;

  my $cb = Authen::PAAS::SimpleCallback->new(data => "joe");

  print $cb->data, "\n";

DESCRIPTION ^

This module provides a trivial subclass of the Authen::PAAS::Callback which always returns a pre-defined chunk of static data.

METHODS ^

$cb = Authen::PAAS::SimpleCallback->new(data => $data);

Create a new callback object which will later provide the piece of static data defined by the data parameter. The data can be of an arbitrary Perl data type, it is treated opaquely by this module.

$cb->data;

Retrieve the data associated with this callback object. The returned data will be that which was orginally passed into the constructor.

AUTHORS ^

Daniel Berrange <dan@berrange.com>

COPYRIGHT ^

Copyright (C) 2004-2006 Daniel Berrange

SEE ALSO ^

Authen::PAAS::Context, Authen::PAAS::Callback