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