* @package Mammut\Auth */ interface iAuthClient { /** * Has to return true if the combination of username and secret are valid. * * @param string $user * the username * @return boolean true on success, false otherwise */ public function isUserSecretValid($user, $secret); /** * Has to return the password of the user in plain text. * Not needed by all auth types, but some (like digest). * * @param string $user * the username * @return string the password or NULL if user is not found */ public function getUserSecret($user); }