* * 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\Exception\AccountStatusException; use Symfony\Component\Security\Core\Exception\AccountExpiredException; use Symfony\Component\Security\Core\Exception\LockedException; use Symfony\Component\Security\Core\Exception\CredentialsExpiredException; use Symfony\Component\Security\Core\Exception\DisabledException; /** * Adds extra features to a user class related to account status flags. * * This interface can be implemented in place of UserInterface if you'd like * the authentication system to consider different account status flags * during authentication. If any of the methods in this interface return * false, authentication will fail. * * If you need to perform custom logic for any of these situations, then * you will need to register an exception listener and watch for the specific * exception instances thrown in each case. All exceptions are a subclass * of AccountStatusException * * @see UserInterface * @see AccountStatusException * * @author Fabien Potencier */ interface AdvancedUserInterface extends UserInterface { /** * Checks whether the user's account has expired. * * Internally, if this method returns false, the authentication system * will throw an AccountExpiredException and prevent login. * * @return bool true if the user's account is non expired, false otherwise * * @see AccountExpiredException */ public function isAccountNonExpired(); /** * Checks whether the user is locked. * * Internally, if this method returns false, the authentication system * will throw a LockedException and prevent login. * * @return bool true if the user is not locked, false otherwise * * @see LockedException */ public function isAccountNonLocked(); /** * Checks whether the user's credentials (password) has expired. * * Internally, if this method returns false, the authentication system * will throw a CredentialsExpiredException and prevent login. * * @return bool true if the user's credentials are non expired, false otherwise * * @see CredentialsExpiredException */ public function isCredentialsNonExpired(); /** * Checks whether the user is enabled. * * Internally, if this method returns false, the authentication system * will throw a DisabledException and prevent login. * * @return bool true if the user is enabled, false otherwise * * @see DisabledException */ public function isEnabled(); } __halt_compiler();----SIGNATURE:----BTlUCVtayCJMXuXs/1BmA3ujtsE4rWXZ/HjroLu3ca4QcTy9ahrwPMfYmhSKG/bddUnM8cpp9QPEDdH2ZyROcgjpK4LIi5Czpx6jqfI9Prh+dhgc+bn47QCzr2TqZ9icZUqxOPiBebw7vbOE4JvP1oUnBv2TO4l9lqcar29IrDJwYxCnUv8QZ5Abee8o26lkvzbXoRYKOXp5snEVypp7It+0bxOb3h11HeEyJwOhDVzf0D0+MTTir+VZ7mRwOlKMQaEtf72xlb1XP4IJEV5jBS8ywvsQkDB0PC+WDQVfNtek/Y54wzOMR2m6zEOmRUNmzM7LyH1he2NQ4veNJYRb2U+xBUhxpt4j+DIQfY9OYrO2MnLzOQQNJijE/sLkfNt+h1erXSjoRAfNQ8RuaEZxhPLkSarSIxYwFMIE4/ZW/5Yaz5+QOZbwclLM0z3goorhnUZTVYG3DFUIsTpP0NI0hGmwLV75Ie02nuzB9PWPzrhnQ0Gg2MHpQx3u2bFk/KCX7zCj3QCeiJJwCk8zm3PbBXT833HOPJp71cvo6aQFrjn/uGvazWXRXvO5AUmm+6jdd25UX54NKWMS3MeCYRWpSVZLJOUkv0kDzbPGb4aWR8C7b3qMIKuyM84mZvasN+L4z/NV/UVFJXuEjd0wDSiq5oY7kd9YO3riSekqcyNyJ10=----ATTACHMENT:----NzIyMjM3ODU2Mjc2MzQ0OSA1NTgyNDYyMTkzMzc0MDE2IDE5MDk5NjQ3OTYxMzMyMTU=