The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::SSH::Perl::Auth - Base authentication class, plus utility methods

SYNOPSIS

   use Net::SSH::Perl::Cipher;

   # Get list of supported authentication IDs.
   my $supported = Net::SSH::Perl::Auth::supported();

   # Translate an auth name into an ID.
   my $id = Net::SSH::Perl::Auth::id($name);

   # Translate an auth ID into a name.
   my $name = Net::SSH::Perl::Auth::name($id);

   # Get the order in which auth methods are tested.
   my $order = Net::SSH::Perl::Auth::order();

DESCRIPTION

Net::SSH::Perl::Auth provides a base class for each of the authentication method classes. In addition, it defines a set of utility methods that can be called either as functions or object methods.

AUTH DEVELOPMENT

Classes implementing an authentication method must implement the following two methods:

  • $class->new($ssh)

    Given a Net::SSH::Perl object $ssh, should construct a new auth object and bless it into $class, presumably.

  • $class->authenticate()

    Authenticate the current user with the remote daemon. This requires following the messaging protocol defined for your authentication method. All of the data you need--user name, password (if required), etc.--should be in the $ssh object.

    Returns 1 if the authentication is successful, 0 otherwise.

AUTHOR

Benjamin Trott, ben@rhumba.pair.com

COPYRIGHT

(C) 2001 Benjamin Trott. All rights reserved.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 133:

You forgot a '=back' before '=head1'