Finance::Bank::Cahoot::CredentialsProvider::CryptFile - Credentials provider for encrypted stored data
my $credentials = Finance::Bank::Cahoot::CredentialsProvider::CrpytFile->new( credentials => [qw(account password)], options => {key => 'verysecret', keyfile => '/etc/cahoot'});
Provides a credentials provider that uses credentials stored in an encrypted file. Each credential is available with its own access method of the same name. All methods may be optionally supplied a character offset in the credentials value (first character is 0).
Create a new instance of a static data credentials provider.
$HOME/.cahoot
Finance::Bank::Cahoot::CredentialsProvider
options
my $provider = Finance::Bank::Cahoot::CredentialsProvider::CryptFile->new( credentials => [qw(account username password)], options => { key => 'verysecret', keyfile => '/etc/cahoot, fallback => 'Constant', fallback_options => { account => '12345678', username => 'acmeuser', password => 'secret' } });
Returns a credential value whose name is passed as the first parameter. An optional character offset (0 is the first character) may also be provided.
my $password_char = $provider->password(5);
Jon Connell <jon@figsandfudge.com>
This module takes its inspiration from Finance::Bank::Natwest by Jody Belka. The crypto access routes are heavily borrowed from Finance::Bank::Wachovia by Jim Gariv.
Finance::Bank::Natwest
Finance::Bank::Wachovia
Copyright 2004 Jim Garvin Copyright 2007 by Jon Connell
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Finance::Bank::Cahoot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Finance::Bank::Cahoot
CPAN shell
perl -MCPAN -e shell install Finance::Bank::Cahoot
For more information on module installation, please visit the detailed CPAN module installation guide.