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

name

App::Tel::Passwd::Mock - Passwd module for testing password modules.

METHODS

new

    my $passwd = App::Tel::Passwd::Mock->new( file => $filename, passwd => $password );

Initializes a new passwd object. This will return a Passwd::Mock Object if the module exists and return undef if it doesn't.

Requires filename and password for the file.

passwd

    $passwd->passwd($entry);

This takes the entry for a key database and returns the password. It returns a blank string if the entry wasn't found.