Csrf\CsrfToken (Component\Security)

Symfony\Component\Security\Csrf\CsrfToken

class CsrfToken

A CSRF token.

Methods

__construct(string $id, string $value)

Constructor.

string getId()

Returns the ID of the CSRF token.

string getValue()

Returns the value of the CSRF token.

string __toString()

Returns the value of the CSRF token.

Details

public __construct(string $id, string $value)

Constructor.

Parameters

string $id The token ID
string $value The actual token value

public string getId()

Returns the ID of the CSRF token.

Return Value

string The token ID

public string getValue()

Returns the value of the CSRF token.

Return Value

string The token value

public string __toString()

Returns the value of the CSRF token.

Return Value

string The token value

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Security/Csrf/CsrfToken.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部