* * 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:----ShszBS95IFLuSncGgv9T9kgKfWeb35ksrYP9LOKtuO8aJvJ91iOTcaTh5AVa14Cgk6W59qSmRjfk5nfe3BducN5tPYKitTUSMfh6jtro/NVZJTA9QhiA2voki8/XkEW9KGqe97goEs+RBJ/zov1v6CQbHJSRDYaLqX7Rl+GnfYnS5NAtY8VgjPCNS2enBX9PLFli18eQRbi42N3UXG8afMgybPGIAXDufNyEqQLumv547IXt8DoHaxD7fp4B0r++3k0If5UCgtYR2fVx+wXkYFNy/XgnoHte1nhSW3ETHbjlf4MPydseJz29HDlPjdo06qzumsAIXNvxDffu8yHt1wpnf9/DD4T0Pl1YlHL61DDRhBbTZJh43eIDZPMrMhQQ9PA3xJI5vjijYmlNB9rRUhMzEandZSx3eI2dT2SJ7w3HJeQyaBn2D6Dsv1Yd8uUTER+OZcWusvTV0AI7sOEg4itIH8Euk9v7UQQGqyLDo8JYDq4OlaxbTw4Vcy478kueVDC1R3kCmwZXAn3iunviUzTqiBzrVTVdW9KbDxc+wN9CM8TMObIUJXvc54Gj519BeH6zzzilQc1qwohTWyeQVI5iD6nc1AN1cir0rhhC5FY3013v+MuDC9ljONFZeONNM0zqlCTMATvB1ePonV4D4sS14FGgSKBu6JbGiU1iJCQ=----ATTACHMENT:----MTcwMDU2MzUzNjcwNDA0MiAxMDI5MTI5OTIxNzEwODE1IDEzMjM1NTc0MDAxNTA3Mjg=