Business::BancaSella::Ris::FileFast - Check the existance of One-Time-Password


Business-BancaSella documentation  | view source Contained in the Business-BancaSella distribution.

Index


NAME

Top

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

SYNOPSIS

Top

  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

Top

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

Top

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

Top

Marco Gazerro <gazerro@open2b.com>

SEE ALSO

Top

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


Business-BancaSella documentation  | view source Contained in the Business-BancaSella distribution.