Method | 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. |
public __toString ( ) : string | ||
return | string | A string representation |
public eraseCredentials ( ) |
public getCredentials ( ) : mixed | ||
return | mixed | The user credentials |
public getRoles ( ) : Role[] | ||
return | Role[] | An array of Role instances. |
public isAuthenticated ( ) : boolean | ||
return | boolean | true if the token has been authenticated, false otherwise |
public isImmutable ( ) : boolean | ||
return | boolean | true if the token is immutable, false otherwise |
public setAuthenticated ( boolean $isAuthenticated ) | ||
$isAuthenticated | boolean | The authenticated flag |