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

NAME

Business::BancaSella::Ris::FileFast - Check the existance of One-Time-Password in an improved ASCII file.

SYNOPSIS

  use Business::BancaSella::Ris;
  
  my $ris = new Business::BancaSella::Ris::FileFast(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 an ASCII file and it could remove it. The file isn't in the standard Banca Sella ASCII file but in an improved version that you can create using prepare(source_file) method where source_file is the original standard Banca Sella ASCII file. This object is more faster in search and extract than Business::BancaSella::Ris::File

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)

Format and correctly append passwords from a standard Banca Sella Ris file into output file.

AUTHOR

Marco Gazerro <gazerro@open2b.com>

SEE ALSO

Business::BancaSella::Ris::File Business::BancaSella::Ris::Mysql