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
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
public
|
#
eraseCredentials( )
Removes sensitive data from the user.
Removes sensitive data from the user.
Implementation of
|