Method |
Description |
|
authenticate ( Login $login, Firewall $firewall ) : boolean |
This method verifies the credentials of current user with the credentials provided from the Login object. |
|
getAuthProviderName ( ) : string |
Returns the name of auth provider. |
|
getPassword ( ) : string |
|
|
getRoles ( ) : array |
Get a list of assigned roles |
|
getUserProviderName ( ) : string |
Returns the name of user provider. |
|
getUsername ( ) : string |
|
|
hasRole ( string $role ) : boolean |
Check if current user has the defined role. |
|
isAuthenticated ( ) : boolean |
Check if user is already authenticated. |
|
isTokenValid ( TokenData $tokenData ) : boolean |
This method compares the $tokenData against the current user and returns true if users are identical,
otherwise false is returned. |
|
populate ( string $username, string $password, array $roles, boolean $isAuthenticated = false ) |
Populate the user object. |
|
setAuthProviderName ( string $name ) |
Set the name of the auth provider. |
|
setIsAuthenticated ( boolean $bool ) |
Sets the auth flag. |
|
setRoles ( array $roles ) |
Sets the user roles. |
|
setUserProviderName ( string $name ) |
Set the name of the user provider. |
|