UsernamePasswordToken::getProviderKey()

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

UsernamePasswordToken::unserialize()

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

UsernamePasswordToken::setAuthenticated()

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

UsernamePasswordToken::getCredentials()

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

UsernamePasswordToken::serialize()

serialize() {@inheritdoc}

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

UserInterface::getUsername()

string getUsername() Returns the username used to authenticate the user. Return Value string The username

UserInterface::getSalt()

string|null getSalt() Returns the salt that was originally used to encode the password. This can return null if the password was not encoded using a salt. Return Value string|null The salt