Overview

Namespaces

  • PHP
  • ProgrammingAreHard
    • Arbiter
      • Domain
      • Model
  • Symfony
    • Component
      • Security
        • Acl
          • Exception
          • Model
          • Permission
        • Core
          • User

Classes

  • ChainUserProvider
  • InMemoryUserProvider
  • User
  • UserChecker

Interfaces

  • AdvancedUserInterface
  • EquatableInterface
  • UserCheckerInterface
  • UserInterface
  • UserProviderInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class User

User is the user implementation used by the in-memory user provider.

This should not be used for anything else.

Symfony\Component\Security\Core\User\User implements Symfony\Component\Security\Core\User\AdvancedUserInterface
Final
Namespace: Symfony\Component\Security\Core\User
Author: Fabien Potencier <fabien@symfony.com>
Located at User.php
Methods summary
public
# __construct( mixed $username, mixed $password, array $roles = array(), mixed $enabled = true, mixed $userNonExpired = true, mixed $credentialsNonExpired = true, mixed $userNonLocked = true )
public Role[]
# getRoles( )

Returns the roles granted to the user.

Returns the roles granted to the user.

Returns

Role[]
The user roles

Implementation of

Symfony\Component\Security\Core\User\UserInterface::getRoles()
public string
# getPassword( )

Returns the password used to authenticate the user.

Returns the password used to authenticate the user.

Returns

string
The password

Implementation of

Symfony\Component\Security\Core\User\UserInterface::getPassword()
public string|null
# getSalt( )

Returns the salt that was originally used to encode the password.

Returns the salt that was originally used to encode the password.

Returns

string|null
The salt

Implementation of

Symfony\Component\Security\Core\User\UserInterface::getSalt()
public string
# getUsername( )

Returns the username used to authenticate the user.

Returns the username used to authenticate the user.

Returns

string
The username

Implementation of

Symfony\Component\Security\Core\User\UserInterface::getUsername()
public boolean
# isAccountNonExpired( )

Checks whether the user's account has expired.

Checks whether the user's account has expired.

Returns

boolean
true if the user's account is non expired, false otherwise

Implementation of

Symfony\Component\Security\Core\User\AdvancedUserInterface::isAccountNonExpired()
public boolean
# isAccountNonLocked( )

Checks whether the user is locked.

Checks whether the user is locked.

Returns

boolean
true if the user is not locked, false otherwise

Implementation of

Symfony\Component\Security\Core\User\AdvancedUserInterface::isAccountNonLocked()
public boolean
# isCredentialsNonExpired( )

Checks whether the user's credentials (password) has expired.

Checks whether the user's credentials (password) has expired.

Returns

boolean
true if the user's credentials are non expired, false otherwise

Implementation of

Symfony\Component\Security\Core\User\AdvancedUserInterface::isCredentialsNonExpired()
public boolean
# isEnabled( )

Checks whether the user is enabled.

Checks whether the user is enabled.

Returns

boolean
true if the user is enabled, false otherwise

Implementation of

Symfony\Component\Security\Core\User\AdvancedUserInterface::isEnabled()
public
# eraseCredentials( )

Removes sensitive data from the user.

Removes sensitive data from the user.

Implementation of

Symfony\Component\Security\Core\User\UserInterface::eraseCredentials()
Arbiter API documentation generated by ApiGen 2.8.0