NAME
Net::Google::FederatedLogin::Extension - Storage and methods for OpenID extensions, both requesting information and receiving data.
VERSION
version 0.8.0
ATTRIBUTES
ns
The namespace to use for this extension (eg 'ax' is the one usually used in documentation about attribute exchange).
uri
The type URI for the extension (eg attribute exchange has http://openid.net/srv/ax/1.0).
attributes
The attributes for the extension (everything under openid.[ns].*), stored as a hashref. Internally this is flattened to a single hashref, but a tree structure can be passed in, and intermediate keys will be linked together with '.'.
METHODS
get_parameter_string
Collect the internal attributes, and create a single string representing the query of this extension object, usable for an OpenID request.
get_parameter
Get a single extension parameter, this is most likely to be used for extensions that are the result of a request (rather than when creating a request).
set_parameter
Set an extension parameter (or several parameters). Nested parameters are allowed, i.e.
$extension->set_parameter(type => {firstname => 'q1', lastname => 'q2'});
is equivalent to:
$extension->set_parameter('type.firstname' => 'q1', 'type.lastname' => 'q2');
and neither approach will clear any other type.*
values that may already be set.
AUTHOR
Glenn Fowler <cebjyre@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 by Glenn Fowler.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.