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

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

Public Methods

Method 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 method

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 method

public eraseCredentials ( )

getCredentials() public method

public getCredentials ( )

getProviderKey() public method

Returns the provider key.
public getProviderKey ( ) : string
return string The provider key

serialize() public method

public serialize ( )

setAuthenticated() public method

public setAuthenticated ( $isAuthenticated )

unserialize() public method

public unserialize ( $serialized )