NAME

CGI::Auth::FOAF_SSL::Agent - an agent (in the FOAF sense)

SYNOPSIS

my $auth = CGI::Auth::FOAF_SSL->new_from_cgi;
if ($auth->is_secure)
{
  my $user = $auth->agent;
  if ($user)
  {
    my $name = $user->name;
    my $link = $user->homepage;
  }
}

DESCRIPTION

CGI::Auth::FOAF_SSL::Agent inherits from CGI::Auth::FOAF_SSL::CertifiedThing, so any methods that apply to a CertifiedThing apply to agents too.

CGI::Auth::FOAF_SSL::Agent provides some additional methods.

Public Methods

$user->name

The name of an agent (e.g. a person's name).

$user->homepage

Gets the URL of the agent's homepage.

$user->img

Gets the URL of an image or depiction of the agent.

$user->mbox

Gets an e-mail address (including "mailto:") to communicate with the agent.

BUGS

Please report any bugs to http://rt.cpan.org/.

SEE ALSO

CGI::Auth::FOAF_SSL, CGI::Auth::FOAF_SSL::CertifiedThing.

AUTHOR

Toby Inkster, <tobyink@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2009-2010 by Toby Inkster

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8 or, at your option, any later version of Perl 5 you may have available.