UsernamePasswordToken::unserialize()

unserialize($serialized) {@inheritdoc} Parameters $serialized

UsernamePasswordToken::setAuthenticated()

setAuthenticated($isAuthenticated) Sets the authenticated flag. Parameters $isAuthenticated

UsernamePasswordToken::serialize()

serialize() {@inheritdoc}

UsernamePasswordToken::getProviderKey()

string getProviderKey() Returns the provider key. Return Value string The provider key

UsernamePasswordToken::getCredentials()

mixed getCredentials() Returns the user credentials. Return Value mixed The user credentials

UsernamePasswordToken::eraseCredentials()

eraseCredentials() Removes sensitive information from the token.

UsernamePasswordToken

class UsernamePasswordToken extends AbstractToken UsernamePasswordToken implements a username and password token. Methods __construct(string|object $user, string $credentials, string $providerKey, array $roles = array()) Constructor. RoleInterface[] getRoles() Returns the user roles. from AbstractToken string getUsername() Returns the username. from AbstractToken mixed getUser() Returns a user representation. from AbstractToken setUser(mixed $user) Sets a user. from Abs

UsernamePasswordFormAuthenticationListener

class UsernamePasswordFormAuthenticationListener extends AbstractAuthenticationListener UsernamePasswordFormAuthenticationListener is the default implementation of an authentication via a simple form composed of a username and a password. Methods __construct(TokenStorageInterface $tokenStorage, AuthenticationManagerInterface $authenticationManager, SessionAuthenticationStrategyInterface $sessionStrategy, HttpUtils $httpUtils, string $providerKey, AuthenticationSuccessHandlerInterface $su

UsernameNotFoundException

class UsernameNotFoundException extends AuthenticationException UsernameNotFoundException is thrown if a User cannot be found by its username. Methods TokenInterface getToken() Get the token. from AuthenticationException setToken(TokenInterface $token) Set the token. from AuthenticationException serialize() unserialize($str) string getMessageKey() Message key to be used by the translation component. array getMessageData() Message data to be used by the translatio

UserLoaderInterface

interface UserLoaderInterface Represents a class that loads UserInterface objects from Doctrine source for the authentication system. This interface is meant to facilitate the loading of a User from Doctrine source using a custom method. If you want to implement your own logic of retrieving the user from Doctrine your repository should implement this interface. Methods UserInterface|null loadUserByUsername(string $username) Loads the user for the given username. Details