class UserSecurityIdentity implements SecurityIdentityInterface
A SecurityIdentity implementation used for actual users
Methods
|
__construct(string $username, string $class)
Constructor |
||
| static UserSecurityIdentity |
fromAccount(UserInterface $user)
Creates a user security identity from a UserInterface |
|
| static UserSecurityIdentity |
fromToken(TokenInterface $token)
Creates a user security identity from a TokenInterface |
|
| string |
getUsername()
Returns the username |
|
| string |
getClass()
Returns the user's class name |
|
|
equals(SecurityIdentityInterface $sid)
This method is used to compare two security identities in order to not rely on referential equality. |
||
| string |
__toString()
A textual representation of this security identity. |
Details
at line 37
public
__construct(string $username, string $class)
Constructor
at line 56
static public UserSecurityIdentity
fromAccount(UserInterface $user)
Creates a user security identity from a UserInterface
at line 67
static public UserSecurityIdentity
fromToken(TokenInterface $token)
Creates a user security identity from a TokenInterface
at line 83
public string
getUsername()
Returns the username
at line 93
public string
getClass()
Returns the user's class name
at line 101
public
equals(SecurityIdentityInterface $sid)
This method is used to compare two security identities in order to not rely on referential equality.
at line 118
public string
__toString()
A textual representation of this security identity.
This is not used for equality comparison, but only for debugging.