Class fs3MockKeyManager

Description

Implements interfaces:

This class implements the fs3KeyManager interface using a very trivial

in-memory array. As the API itself is not focused on using a database, this is an easy compromise. This class be used in conjunction with a file loader to store keys and secrets in for multiple users in a file or even a database. Although, the database solution would benfit from its own implementation of fs3KeyManager.

Located in /classes/fs3MockKeyManager.php (line 23)


	
			
Method Summary
fs3MockKeyManager fs3MockKeyManager ()
void addKey (string $key, string $secret)
false getSecret (string $key)
Methods
Constructor fs3MockKeyManager (line 28)

Constructor

  • access: public
fs3MockKeyManager fs3MockKeyManager ()
addKey (line 53)

Adds a key-secret combination.

  • access: public
void addKey (string $key, string $secret)
  • string $key: key to be used to find the matching secret
  • string $secret: secret to be returned for the key. Should be 40 characters in length according to Amazon API.
getSecret (line 39)

Get the secret string.

  • return: or the secret.
  • access: public
false getSecret (string $key)
  • string $key: key to be used to find the matching secret

Implementation of:
fs3KeyManager::getSecret()
Get the secret string.

Documentation generated on Thu, 04 Feb 2010 04:14:25 +0000 by phpDocumentor 1.4.3