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


Authen-PAAS documentation  | view source Contained in the Authen-PAAS distribution.

Index


NAME

Top

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

SYNOPSIS

Top

  use Authen::PAAS::SimpleCallback;

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

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

DESCRIPTION

Top

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

METHODS

Top

$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

Top

Daniel Berrange <dan@berrange.com>

COPYRIGHT

Top

SEE ALSO

Top

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


Authen-PAAS documentation  | view source Contained in the Authen-PAAS distribution.