Symfony\Component\Security\Core\Authentication\Token\AnonymousToken
AnonymousToken represents an anonymous token.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class AnonymousToken
extends AbstractToken
{
- // members
- private $key;
- // methods
- public void __construct()
- public void getCredentials()
- public string getKey()
- public void serialize()
- public void unserialize()
- // Inherited methods from AbstractToken
- 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()
Hierarchy
Members
private
- $key
Methods
public
- __construct() — Constructor.
- getCredentials() — {@inheritdoc}
- getKey() — Returns the key.
- serialize() — {@inheritDoc}
- unserialize() — {@inheritDoc}
Inherited from Symfony\Component\Security\Core\Authentication\Token\AbstractToken
public
- __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}