* * 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:----bgmBhAwWgS7amIjkdxerjfaBXYCPcgepnz3I0QHo3Iu1hxI3+CO2AX4yQowJCLfvmukkd/HgM26Ho4nlmgONTYkeNqQfiLZLjPuJPO3M+goqowrtIChWKGdOkLh0we8wQ0p80ZSsFXCHA0pzhARQ7sUMLalez5KpZcuNd9sY3m+1AOYbBL6S9na1LpiPEhwD7QYjJS5FsF/POwpCQvAiaRg8V4DndU1jjoLGXhh35UGYYpXcCyYMdzhKwPmda7jnmYanwCaMN194tJBgPprMDTFFD6ERosIbyi5t5tIJnUE61nWD5tZa1FvgE2DvkELv/1sp6KcAWr918t+hxQCmHWK6MaxwcY1KONieOgPNTJ9w/GdvywpvQpen11RN1ygOMoqfuN0Dmr7Txdf8NfcuRbc8wYS9Jz7jNipTwXdaapgMkebDyqH+lMEx3BWkFqWAbsUqQsMicT+GOMc9/b0NgSaal7zx72fOhvuosI66wIpECSETYt5Nmx79kSFIinxrC2m+Nd3sLJnmRCnDDnaT/T+QbQxb76lSj8ybHJHUF41bVYqlZPNDQaP7HbtzAy+lIfwJQVgEJR570x90wGhfGzu5Ce1tmKRh5hI/r5p5trkUF6ZxXYJhJy1t8rIeVcSX/pq4ZijSmJtpkMBU27G2JQORx/nUJpR3nvTG2GrilIc=----ATTACHMENT:----NzM4MDU3NDMyMjk1ODMxMCA1ODYwMDQ4MTc5MDI5MDg4IDUzMTA3NTYxODI1NTIyMg==