NAME

Business::BancaSella::Ris::File - Check the existance of One-Time-Password in a standard Banca Sella ASCII file.

SYNOPSIS

use Business::BancaSella::Ris;

my $ris = new Business::BancaSella::Ris::File(file => 'filePath/filename.ric');
my $ok = $ris->check($otp);
if ($ok) {$ris->remove($otp));

DESCRIPTION

This module check if One-Time-Password is present in a file and it could remove it.

METHODS

file()

Set or get the file path where are stored One-Time passwords.

extract(otp)

Check password and return false if not found, else remove password from OTP file

check(otp)

Return TRUE or FALSE if the OTP is present in the file

remove(otp)

Remove the OTP if present in the file. Raise an error if not present.

prepare(source_file)

Don't do nothing :-). Here only for interface compatibility.

AUTHOR

Bruni Emiliano, info@ebruni.it

SEE ALSO

Business::BancaSella::Ric::Mysql