Author image Robert Drake
and 1 contributors

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.