* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Security\Core\User; use Symfony\Component\Security\Core\Role\Role; /** * Represents the interface that all user classes must implement. * * This interface is useful because the authentication layer can deal with * the object through its lifecycle, using the object to get the encoded * password (for checking against a submitted password), assigning roles * and so on. * * Regardless of how your user are loaded or where they come from (a database, * configuration, web service, etc), you will have a class that implements * this interface. Objects that implement this interface are created and * loaded by different objects that implement UserProviderInterface * * @see UserProviderInterface * @see AdvancedUserInterface * * @author Fabien Potencier */ interface UserInterface { /** * Returns the roles granted to the user. * * * public function getRoles() * { * return array('ROLE_USER'); * } * * * Alternatively, the roles might be stored on a ``roles`` property, * and populated in any number of different ways when the user object * is created. * * @return (Role|string)[] The user roles */ public function getRoles(); /** * Returns the password used to authenticate the user. * * This should be the encoded password. On authentication, a plain-text * password will be salted, encoded, and then compared to this value. * * @return string The password */ public function getPassword(); /** * Returns the salt that was originally used to encode the password. * * This can return null if the password was not encoded using a salt. * * @return string|null The salt */ public function getSalt(); /** * Returns the username used to authenticate the user. * * @return string The username */ public function getUsername(); /** * Removes sensitive data from the user. * * This is important if, at any given point, sensitive information like * the plain-text password is stored on this object. */ public function eraseCredentials(); } __halt_compiler();----SIGNATURE:----WsqkCUcst4qZMRedCwkxh9BhMJH+jf7hk8ZJt7V9lMDKpwCf4OZ28GQT6vfgUlYKzbMJiCxa/THzLxEIMi0nx5Jy8VKtqqV34LGPx1J7xXfI6EOCQfXnJJXzCjU4puPW103TdzzniS/3/mTKu8i7AMDDknxyZ8bBGr58SNYT2ucWXHs4zDAALvRqRlLg+ZRt1KRQsT5LLx3ZpPENGb6kgl0QPAal2mUAemA2Uujx/cF4aGOaGLcmaJtMeHPfnV/OSosWf3nWns7McSR+ayiwDqBN7Ig/KC9VrjHhRmsCTHgNQ+RWUQTTaeOPa0iRi/yR2uH2R00SGeTYqAMKd7GheNd/wj99OuWkkPmhUzjfyWUMoKvDxje4+7QV4vY85KblOeoc6AuGxvI9VL0pYaSblBCVLSgBePNGaUHGOIIO9BwkFjvadFtgVIKxJvsW6ZZV2erHRdxjJSpTmKI2BmGNPYkFrytP1SFnK5o8/F7NmaZaHr1P56zm7FHvqgPqCu4LSerGonomSAO/BzzHF71/xHXxLd/g04tLoUDlF8Nae7L16BJa3CE3PxVy5kxHppNzbP0jLDAk3jvSVxgjiSX4/mukKs4TNu9GvyMtPojFaoIwNbaa8Lz0fYZd4JPBRTMUAbpImhkEQ/lr/JYX1+/XX0uR5DNSvloAZqVUiuuEsSM=----ATTACHMENT:----Nzc0MDk4MDk1MzIwNjQ4IDE0MjQxMzEwNjQ1NjY2MzUgMjg2MjcxOTE4MDg2NzU4Mg==