PHP Class Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken

Author: Fabien Potencier ([email protected])
Inheritance: extends AbstractToken
Afficher le fichier Open project: symfony/symfony Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string | object $user, string $credentials, string $providerKey, array $roles = [] ) Constructor.
eraseCredentials ( )
getCredentials ( )
getProviderKey ( ) : string Returns the provider key.
serialize ( )
setAuthenticated ( $isAuthenticated )
unserialize ( $serialized )

Method Details

__construct() public méthode

Constructor.
public __construct ( string | object $user, string $credentials, string $providerKey, array $roles = [] )
$user string | object The username (like a nickname, email address, etc.), or a UserInterface instance or an object implementing a __toString method
$credentials string This usually is the password of the user
$providerKey string The provider key
$roles array

eraseCredentials() public méthode

public eraseCredentials ( )

getCredentials() public méthode

public getCredentials ( )

getProviderKey() public méthode

Returns the provider key.
public getProviderKey ( ) : string
Résultat string The provider key

serialize() public méthode

public serialize ( )

setAuthenticated() public méthode

public setAuthenticated ( $isAuthenticated )

unserialize() public méthode

public unserialize ( $serialized )