* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Security\Csrf; /** * Manages CSRF tokens. * * @author Bernhard Schussek */ interface CsrfTokenManagerInterface { /** * Returns a CSRF token for the given ID. * * If previously no token existed for the given ID, a new token is * generated. Otherwise the existing token is returned (with the same value, * not the same instance). * * @param string $tokenId The token ID. You may choose an arbitrary value * for the ID * * @return CsrfToken The CSRF token */ public function getToken($tokenId); /** * Generates a new token value for the given ID. * * This method will generate a new token for the given token ID, independent * of whether a token value previously existed or not. It can be used to * enforce once-only tokens in environments with high security needs. * * @param string $tokenId The token ID. You may choose an arbitrary value * for the ID * * @return CsrfToken The CSRF token */ public function refreshToken($tokenId); /** * Invalidates the CSRF token with the given ID, if one exists. * * @param string $tokenId The token ID * * @return string|null Returns the removed token value if one existed, NULL * otherwise */ public function removeToken($tokenId); /** * Returns whether the given CSRF token is valid. * * @return bool Returns true if the token is valid, false otherwise */ public function isTokenValid(CsrfToken $token); } __halt_compiler();----SIGNATURE:----fpy8k3clpkN7wDULTJTOIm+/2M/EKfpnZCD7YyLfZSQtiDo+XbX9GAeokb8DP6ItjC2WJqvIWsS0ImWgbmIvEGLbK4OLzUp/1nKGDhH5fyZcJHF8VwS9aj1KarfrYl8VUOXQcpiwXnfjTlPnPeVIgrMxp1E9qP8AU8BdEu8gHP+dqxfofMzhD7tBcGvrDURlXA/z1ODnZ0T4WiKVL+4yRKWH4/pA5yv1p0FvTxDb07Anz4wQ5gnPlttyRHGygWbZ4o1F3koSTT9I2AkGbGHSNAa8ItxnccZgZ6ib9j/hE3fvB2ciOczS1zEtRzDZOYnitrRFIk4aHRjs5Eb+iyjXgEACo28/d8D2KjI75AIilu7CQlCJGDtJDRzao998ZpKtnCQr9f8QBpmE54rF54E8LF9tCpXXBK7/VH1WJfbDT3PrBhTKaRYXpExk9t3qBpnI/ZGgpJsy2bEt5OA06RWALmdLK0TwNPSSTiDKQ4em4l89sZQAnC2AW8c6L3jWSSaM7Dmzz1mGj6+9VEwurhCAZnTi1BfwYNymeGR70b2Lu4zspTcb82qfbwfa4o6wi4+vLBt+rnd9qQWPgwWJ4WkkZW8r3+zW1q6lF81ER4Bgw2iYVbe3oB8Q3w83+SPhdaU0GZ1uq8VhHpaMXRDP7Zver4+3GgX2SzgGerZ48J4ogXk=----ATTACHMENT:----NTM0NzcxOTc3MjIxNTM2NiA5MDg5MDI0NzE0NTUwMjEzIDcwNDYwMDE4OTM1MjU2NDQ=