1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?php
- /*
- * This file is part of the symfony package.
- * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
- * (c) 2004-2006 Sean Kerr <sean@code-box.org>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
- /**
- * sfSecurityUser interface provides advanced security manipulation methods.
- *
- * @package symfony
- * @subpackage user
- * @author Fabien Potencier <fabien.potencier@symfony-project.com>
- * @author Sean Kerr <sean@code-box.org>
- * @version SVN: $Id: sfSecurityUser.class.php 9060 2008-05-19 21:31:17Z FabianLange $
- */
- interface sfSecurityUser
- {
- /**
- * Add a credential to this user.
- *
- * @param mixed Credential data.
- */
- public function addCredential($credential);
- /**
- * Clear all credentials associated with this user.
- */
- public function clearCredentials();
- /**
- * Indicates whether or not this user has a credential.
- *
- * @param mixed $credential Credential data.
- *
- * @return bool true, if this user has the credential, otherwise false.
- */
- public function hasCredential($credential);
- /**
- * Indicates whether or not this user is authenticated.
- *
- * @return bool true, if this user is authenticated, otherwise false.
- */
- public function isAuthenticated();
- /**
- * Remove a credential from this user.
- *
- * @param mixed $credential Credential data.
- */
- public function removeCredential($credential);
- /**
- * Set the authenticated status of this user.
- *
- * @param bool $authenticated A flag indicating the authenticated status of this user.
- */
- public function setAuthenticated($authenticated);
- }
|