2012-01-06 15:21:29 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2014-08-18 19:53:40 +00:00
|
|
|
* @copyright 2011-2013 City of Bloomington, Indiana
|
2012-01-06 15:21:29 +00:00
|
|
|
* @license http://www.gnu.org/licenses/agpl.txt GNU/AGPL, see LICENSE.txt
|
|
|
|
* @author Cliff Ingham <inghamn@bloomington.in.gov>
|
|
|
|
*/
|
2014-08-18 19:53:40 +00:00
|
|
|
namespace Blossom\Classes;
|
2012-01-06 15:21:29 +00:00
|
|
|
|
|
|
|
interface ExternalIdentity
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Should load user data from storage
|
|
|
|
*/
|
|
|
|
public function __construct($username);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Return whether the username, password combo is valid
|
|
|
|
*
|
|
|
|
* @param string $username
|
|
|
|
* @param string $password The unencrypted password
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public static function authenticate($username,$password);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getFirstname();
|
|
|
|
public function getLastname();
|
|
|
|
public function getEmail();
|
2014-08-18 19:53:40 +00:00
|
|
|
public function getPhone();
|
|
|
|
public function getAddress();
|
|
|
|
public function getCity();
|
|
|
|
public function getState();
|
|
|
|
public function getZip();
|
|
|
|
}
|