Core\Authentication\RememberMe\PersistentToken (Component\Security)

Symfony\Component\Security\Core\Authentication\RememberMe\PersistentToken

class PersistentToken implements PersistentTokenInterface

This class is only used by PersistentTokenRememberMeServices internally.

Methods

__construct(string $class, string $username, string $series, string $tokenValue, DateTime $lastUsed)

Constructor.

string getClass()

Returns the class of the user.

string getUsername()

Returns the username.

string getSeries()

Returns the series.

string getTokenValue()

Returns the token value.

DateTime getLastUsed()

Returns the time the token was last used.

Details

public __construct(string $class, string $username, string $series, string $tokenValue, DateTime $lastUsed)

Constructor.

Parameters

string $class
string $username
string $series
string $tokenValue
DateTime $lastUsed

Exceptions

InvalidArgumentException

public string getClass()

Returns the class of the user.

Return Value

string

public string getUsername()

Returns the username.

Return Value

string

public string getSeries()

Returns the series.

Return Value

string

public string getTokenValue()

Returns the token value.

Return Value

string

public DateTime getLastUsed()

Returns the time the token was last used.

Return Value

DateTime
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部