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

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

Public Methods

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

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 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 ( )

unserialize() public method

public unserialize ( $str )