* * 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:----khPIg748JI19sLg2s7VJ4CXqGsgK7rFkn3G0tRagKE49jcdoB/Rz7Jh3tyk1VLoaJZ4setvEOoDZUAgDdx6K0rWda1Y8gdg0jRBiGnMPxNrrU0m0YxBQCUzpz/wJ2MCDtZbn06/DWTGriPqn31cynN8fo9Y/LcsMJBnOWwgNQScB6XnZsPnswj96RB3bP67NDclzMbyQM7GC6lGOYVGpEb5LwPj/+x440Iy4fdjTRSZOaOy8jFgxw9M3Hu38kai9Qyf3Xkph63/Vg6upuRe2mdbx9eDT721GYzaOTnw8zI2j65WNmeOtu1BY3hzQo4rNvTnTNxL/qOpelDtSdbeBu93TX78Wvh7DFqkR1C5A5v5Ybxm4c6xzsViSfEV/z2fW712epfx0CwEOciqpselq9lh1SgRQkzbkU3eA1v98nVgVUY4D+zyvGA0DH/oK90O/nZgc60wB/zfIxEyorTvydWaeYDcmM3AavkFvhTineBZtS+hlN7/ySF4gnhh+PbUccYUfkk1cjiPmuvy2CGk660TroN3NsBJByyDL8o1gor8h+5KVAtz1EH0nw4/I1AVvYwQHclN3LBJ1bDivVSUTjX+rybX/sj9/mZIDk+jiWDZz9uoMT3z60Lrlvt2485GQsEJd43GvMCLNmc5OY53eKiSggfjkO+DF8l3RJ36Hzzs=----ATTACHMENT:----OTk1MTc2MzI3NTk1MzMzNCAzMzQzODU4NzU2NTY3NjUyIDI0MjEwOTk1NTg5MjA5Ng==