NAME

Finance::Bank::Cahoot::CredentialsProvider::Constant - credentials provider for static data

SYNOPSIS

my $credentials = Finance::Bank::Cahoot::CredentialsProvider::Constant->new(
   credentials => [qw(account password)],
   options => {account => 'acmeuser'});

DESCRIPTION

Provides a credentials provider that returns static data. 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).

METHODS

new

Create a new instance of a static data credentials provider.

*

credentials is an array ref of all the credentials types available via the credentials provider.

*

options is a hash ref of constant return values of credentials.

get

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);

AUTHOR

Jon Connell <jon@figsandfudge.com>

LICENSE AND COPYRIGHT

This module takes its inspiration from Finance::Bank::Natwest by Jody Belka.

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.

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 65:

Expected text after =item, not a bullet

Around line 70:

Expected text after =item, not a bullet