PHP Interface Symfony\Component\Security\Authentication\Token\TokenInterface

Author: Fabien Potencier ([email protected])
Inheritance: extends Serializable
Afficher le fichier Open project: pmjones/php-framework-benchmarks Interface Usage Examples

Méthodes publiques

Méthode Description
__toString ( ) : string Returns a string representation of the token.
eraseCredentials ( ) Removes sensitive information from the token.
getCredentials ( ) : mixed Returns the user credentials.
getRoles ( ) : Role[] Returns the user roles.
getUser ( ) : object Returns a user instance.
isAuthenticated ( ) : boolean Checks if the user is authenticated or not.
isImmutable ( ) : boolean Checks whether the token is immutable or not.
setAuthenticated ( boolean $isAuthenticated ) Sets the authenticated flag.

Method Details

__toString() public méthode

Returns a string representation of the token.
public __toString ( ) : string
Résultat string A string representation

eraseCredentials() public méthode

Removes sensitive information from the token.
public eraseCredentials ( )

getCredentials() public méthode

Returns the user credentials.
public getCredentials ( ) : mixed
Résultat mixed The user credentials

getRoles() public méthode

Returns the user roles.
public getRoles ( ) : Role[]
Résultat Role[] An array of Role instances.

getUser() public méthode

Returns a user instance.
public getUser ( ) : object
Résultat object The User instance

isAuthenticated() public méthode

Checks if the user is authenticated or not.
public isAuthenticated ( ) : boolean
Résultat boolean true if the token has been authenticated, false otherwise

isImmutable() public méthode

Checks whether the token is immutable or not.
public isImmutable ( ) : boolean
Résultat boolean true if the token is immutable, false otherwise

setAuthenticated() public méthode

Sets the authenticated flag.
public setAuthenticated ( boolean $isAuthenticated )
$isAuthenticated boolean The authenticated flag