string|null removeToken(string $tokenId) Removes a CSRF token. Parameters string $tokenId The token ID Return Value string|null Returns the removed token if one existed, NULL otherwise
bool hasToken(string $tokenId) Checks whether a token with the given token ID exists. Parameters string $tokenId The token ID Return Value bool Whether a token exists with the given ID
setToken(TokenInterface $token = null) Sets the authentication token. Parameters TokenInterface $token A TokenInterface token, or null if no further authentication information should be stored
interface TokenStorageInterface The TokenStorageInterface. Methods TokenInterface|null getToken() Returns the current security token. setToken(TokenInterface $token = null) Sets the authentication token. Details TokenInterface|null getToken() Returns the current security token. Return Value TokenInterface|null A TokenInterface instance or null if no authentication information is available setToken(TokenInt
TokenInterface|null getToken() Returns the current security token. Return Value TokenInterface|null A TokenInterface instance or null if no authentication information is available
interface TokenStorageInterface Stores CSRF tokens. Methods string getToken(string $tokenId) Reads a stored CSRF token. setToken(string $tokenId, string $token) Stores a CSRF token. string|null removeToken(string $tokenId) Removes a CSRF token. bool hasToken(string $tokenId) Checks whether a token with the given token ID exists. Details string getToken(string $tokenId) Reads a stored CSRF token. Parameters string $tokenId The t
class TokenStorage implements TokenStorageInterface TokenStorage contains a TokenInterface. It gives access to the token representing the current user authentication. Methods TokenInterface|null getToken() Returns the current security token. setToken(TokenInterface $token = null) Sets the authentication token. Details TokenInterface|null getToken() Returns the current security token. Return Value TokenInterface|null A TokenInterface ins
PersistentTokenInterface loadTokenBySeries(string $series) Loads the active token for the given series. Parameters string $series Return Value PersistentTokenInterface Exceptions TokenNotFoundException if the token is not found
updateToken(string $series, string $tokenValue, DateTime $lastUsed) Updates the token according to this data. Parameters string $series string $tokenValue DateTime $lastUsed Exceptions TokenNotFoundException if the token is not found
Page 62 of 787