* * 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:----FfZkYRtzAhebcLLzzYJIloTcAl3VBo2WcmdCqfRPXedl7p1eFWsTUl4jSGT5En2HgZtS/w/tj9FNtnGForvsHQ4MkRdaH93fBlNHWpXbWhmla1HA9ZMF4J6dcrpvNJh01spsZCg6oP/AihRIpNIaumW/aPkckhQgWLtQakvtdD0EDRUGOK7fA7eu4i9/7Xewmbp8atr2exT4WcQVifAi5K9AdTQe1XYV4NHXFJUUFzIgytUoHvUgbp++XPaHhgtNA4FMoykjr54ww2NKnLuyAxtKE+tvY5/u1SOEc/Xc8uHQ2vXtoE+gUkPbqq3aE3iJ6cLKKcmKqPSeHpb0ak8mIQNNGyVX51cGI9dVQYQTdi8vPNrO2KcOp06rh/QH+srMxNsap4yizfGMd6F3NzILUebm9x4akKWRbohgNS8gCA1IXss5QaHIDnyPXzTJsqJmwv8Ezp4HbaUzhZsYOhYnLq8Mwxb+MDY76XzPV2wH0NyLZAQHJLWosBO/5OuXM1HUWarDg/z4My8uLNz/mGd4LQDstsuloQM44QfXHzYbF8JWPg+THtGPM1w6Oyw5QRsskzfymTNtuGYlZmBO67rKsVGRd8jTO7l2vjOl1CrvaAc3KDYajTx+/BK3UY2nP7ADLY8dbyHs1GCjvc6dMLKoYAy5mZdCfn6zNWrc08x71zg=----ATTACHMENT:----Njc0NzQ4MDI1MjU1MDIzNCA4MzE2MTM4OTI3NDgyODg5IDg5MDU1Njc1Mjg0NTIzNjA=