Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

net::openid::indirectmessage(3pm) [debian man page]

Net::OpenID::IndirectMessage(3pm)			User Contributed Perl Documentation			 Net::OpenID::IndirectMessage(3pm)

NAME
Net::OpenID::IndirectMessage - Class representing a collection of namespaced arguments VERSION
version 1.14 DESCRIPTION
This class acts as an abstraction layer over a collection of flat URL arguments which supports namespaces as defined by the OpenID Auth 2.0 specification. It also recognises when it is given OpenID 1.1 non-namespaced arguments and acts as if the relevant namespaces were present. In this case, it only supports the basic OpenID 1.1 arguments and the extension arguments for Simple Registration. This class can operate on a normal hashref, a CGI object, an Apache object, an Apache::Request object, an Apache2::Request object, a Plack::Request object, or an arbitrary "CODE" ref that takes a key name as its first parameter and returns a value. However, if you use a coderef then extension arguments are not supported. If you pass in a hashref or a coderef it is your responsibility as the caller to check the HTTP request method and pass in the correct set of arguments. For the other kinds of objects, this module will do the right thing automatically. SYNOPSIS
use Net::OpenID::IndirectMessage; # Pass in something suitable for the underlying flat dictionary. # Will return an instance if the request arguments can be understood # as a supported OpenID Message format. # Will return undef if this doesn't seem to be an OpenID Auth message. # Will croak if the $argumenty_thing is not of a suitable type. my $args = Net::OpenID::IndirectMessage->new($argumenty_thing); # Determine which protocol version the message is using. # Currently this can be either 1 for 1.1 or 2 for 2.0. # Expect larger numbers for other versions in future. # Most callers don't really need to care about this. my $version = $args->protocol_version(); # Get a core argument value ("openid.mode") my $mode = $args->get("mode"); # Get an extension argument value my $nickname = $args->get_ext("http://openid.net/extensions/sreg/1.1", "nickname"); # Get hashref of all arguments in a given namespace my $sreg = $args->get_ext("http://openid.net/extensions/sreg/1.1"); Most of the time callers won't need to use this class directly, but will instead access it through a Net::OpenID::Consumer instance. perl v5.12.4 2011-11-11 Net::OpenID::IndirectMessage(3pm)

Check Out this Related Man Page

Net::DBus::Callback(3pm)				User Contributed Perl Documentation				  Net::DBus::Callback(3pm)

NAME
Net::DBus::Callback - a callback for receiving reactor events SYNOPSIS
use Net::DBus::Callback; # Assume we have a 'terminal' object and its got a method # to be invoked everytime there is input on its terminal. # # To create a callback to invoke this method one might use my $cb = Net::DBus::Callback->new(object => $terminal, method => "handle_stdio"); # Whatever is monitoring the stdio channel, would then # invoke the callback, perhaps passing in a parameter with # some 'interesting' data, such as number of bytes available $cb->invoke($nbytes) #... which results in a call to # $terminal->handle_stdio($nbytes) DESCRIPTION
This module provides a simple container for storing details about a callback to be invoked at a later date. It is used when registering to receive events from the Net::DBus::Reactor class. NB use of this module in application code is no longer neccessary and it remains purely for backwards compatability. Instead you can simply pass a subroutine code reference in any place where a callback is desired. METHODS
my $cb = Net::DBus::Callback->new(method => $name, [args => @args]) Creates a new callback object, for invoking a plain old function. The "method" parameter should be the fully qualified function name to invoke, including the package name. The optional "args" parameter is an array reference of parameters to be pass to the callback, in addition to those passed into the "invoke" method. my $cb = Net::DBus::Callback->new(object => $object, method => $name, [args => @args]) Creates a new callback object, for invoking a method on an object. The "method" parameter should be the name of the method to invoke, while the "object" parameter should be a blessed object on which the method will be invoked. The optional "args" parameter is an array reference of parameters to be pass to the callback, in addition to those passed into the "invoke" method. $cb->invoke(@args) Invokes the callback. The argument list passed to the callback is a combination of the arguments supplied in the callback constructor, followed by the arguments supplied in the "invoke" method. AUTHOR
Daniel P. Berrange. COPYRIGHT
Copyright (C) 2004-2011 Daniel P. Berrange SEE ALSO
Net::DBus::Reactor perl v5.14.2 2011-06-30 Net::DBus::Callback(3pm)
Man Page