* * 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; /** * User is the user implementation used by the in-memory user provider. * * This should not be used for anything else. * * @author Fabien Potencier */ final class User implements AdvancedUserInterface { private $username; private $password; private $enabled; private $accountNonExpired; private $credentialsNonExpired; private $accountNonLocked; private $roles; public function __construct($username, $password, array $roles = array(), $enabled = true, $userNonExpired = true, $credentialsNonExpired = true, $userNonLocked = true) { if ('' === $username || null === $username) { throw new \InvalidArgumentException('The username cannot be empty.'); } $this->username = $username; $this->password = $password; $this->enabled = $enabled; $this->accountNonExpired = $userNonExpired; $this->credentialsNonExpired = $credentialsNonExpired; $this->accountNonLocked = $userNonLocked; $this->roles = $roles; } public function __toString() { return $this->getUsername(); } /** * {@inheritdoc} */ public function getRoles() { return $this->roles; } /** * {@inheritdoc} */ public function getPassword() { return $this->password; } /** * {@inheritdoc} */ public function getSalt() { } /** * {@inheritdoc} */ public function getUsername() { return $this->username; } /** * {@inheritdoc} */ public function isAccountNonExpired() { return $this->accountNonExpired; } /** * {@inheritdoc} */ public function isAccountNonLocked() { return $this->accountNonLocked; } /** * {@inheritdoc} */ public function isCredentialsNonExpired() { return $this->credentialsNonExpired; } /** * {@inheritdoc} */ public function isEnabled() { return $this->enabled; } /** * {@inheritdoc} */ public function eraseCredentials() { } } __halt_compiler();----SIGNATURE:----AQvZu6fKqz70lT2/NM1xJX2jJi9giAen1Huy57t5vHrjqxgVWJEWcOqyiXr3Mm7fPasjspmSA/hDcmW2cm43OoTMoXP6mty9j3aB6lGdKKlJAkcKMRB98RR1qaWSV2oj1d715Wzn1lkeVGMRzUO+seHuzrplPhD1Tf1RT+DhYXgrLJn+6YyQvygmSWS//DfwHti0PbyeBeaTOzxZrkIRSbqylY2SYiDPsYYcvcwP5omwiuDyhNh3NwtJR2UIsjkmBk8BvcB/zzTrNdugIiuWy8CSR6F0u7YZHxK4oDrbd32unRu0jscVuKuVLBKnPiFflznHODdOi1e9CpRwZI4M92oE8uNaea0QX+ZVfVqf+hNPiCi1oagus0/CLVXwSJXti2CmJTzZIYKk/M4P/Sl0v5oSdqsVGsM0jtx8sC5FD6IQW3Fqegl6n6b7NVzKJ9rGbCLNf7byTgVP5iw5JuEp4REjbQ3Hf6mRP01rHxnDtTJPDEpzvnQQSAv1YYvSNL4FUJPwl6g03HZCzH9qi6CJ4jnYP5A4MZPjScSuKC/xZLymsnm09AKz4u/4dL5m1dUFA7REDVzF+GdTi6JUZrkY2ONhfMLHVi1JnVk3KXSka6GTp64beysXgewMng2Jr5sy9Os5K/R0bJ7nZ6+Kinc89BKoXNKt4BEvqKrmEFVs7ks=----ATTACHMENT:----ODY5OTkyNDQzNjU3MzY0NiA1OTcwOTI5MjYzOTM3NDA0IDk2Nzk1Njg5NTY0NTMzOTM=