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

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, mixed $credentials, string $providerKey, array $roles = [] ) Constructor.
eraseCredentials ( )
getCredentials ( )
getProviderKey ( ) : string Returns the provider key.
serialize ( )
unserialize ( $str )

Method Details

__construct() public méthode

Constructor.
public __construct ( string | object $user, mixed $credentials, string $providerKey, array $roles = [] )
$user string | object The user can be a UserInterface instance, or an object implementing a __toString method or the username as a regular string
$credentials mixed The user credentials
$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 ( )

unserialize() public méthode

public unserialize ( $str )