Symfony\Component\Security\Core\Authentication\Token\AbstractToken
Base class for Token instances.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class AbstractToken
implements
TokenInterface
{
- // members
- private $user;
- private $roles;
- private $authenticated;
- private $attributes;
- // methods
- public void __construct()
- public void getRoles()
- public void getUsername()
- public void getUser()
- public void setUser()
- public void isAuthenticated()
- public void setAuthenticated()
- public void eraseCredentials()
- public void serialize()
- public void unserialize()
- public array getAttributes()
- public void setAttributes()
- public Boolean hasAttribute()
- public mixed getAttribute()
- public void setAttribute()
- public void __toString()
- private void hasUserChanged()
Hierarchy
Extended by
- Symfony\Component\Security\Core\Authentication\Token\PreAuthenticatedToken
- Symfony\Component\Security\Core\Authentication\Token\AnonymousToken
- Symfony\Component\Security\Core\Authentication\Token\RememberMeToken
- Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken
Implements
Members
private
- $attributes
- $authenticated
- $roles
- $user
Methods
private
public
- __construct() — Constructor.
- __toString() — {@inheritDoc}
- eraseCredentials() — {@inheritdoc}
- getAttribute() — Returns an attribute value.
- getAttributes() — Returns the token attributes.
- getRoles() — {@inheritdoc}
- getUser()
- getUsername() — {@inheritdoc}
- hasAttribute() — Returns true if the attribute exists.
- isAuthenticated() — {@inheritdoc}
- serialize() — {@inheritdoc}
- setAttribute() — Sets a attribute.
- setAttributes() — Sets the token attributes.
- setAuthenticated() — {@inheritdoc}
- setUser() — Sets the user in the token.
- unserialize() — {@inheritdoc}