* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Security\Csrf\TokenStorage; /** * Stores CSRF tokens. * * @author Bernhard Schussek */ interface TokenStorageInterface { /** * Reads a stored CSRF token. * * @param string $tokenId The token ID * * @return string The stored token * * @throws \Symfony\Component\Security\Csrf\Exception\TokenNotFoundException If the token ID does not exist */ public function getToken($tokenId); /** * Stores a CSRF token. * * @param string $tokenId The token ID * @param string $token The CSRF token */ public function setToken($tokenId, $token); /** * Removes a CSRF token. * * @param string $tokenId The token ID * * @return string|null Returns the removed token if one existed, NULL * otherwise */ public function removeToken($tokenId); /** * Checks whether a token with the given token ID exists. * * @param string $tokenId The token ID * * @return bool Whether a token exists with the given ID */ public function hasToken($tokenId); } __halt_compiler();----SIGNATURE:----SsM4AVZFVr7Bxs2H9/tNABB8vT8JJNBEI38HEWcOl/3kLlDRo/iSmLrN3pE8guaPTR7b2eF3RqwMcD0osKfKlBv2GF4r0zp522IMsk3UZCe4o9crc2OR/MEMRmaWsknuMivDVvLkRLl6xnAGpXpqoTW4/f/MdEExC0eqyMFZI9eM4YOSVCXZvjzLPsV/BoqDfwp4IlhwzFSp8T9wC1wW+k9p6chCW2PtQ0r+xWIABZTtNvD31GxaUQ9tDtMCSiOSKuZ2W3oJwHygA4vnnrle2YRXdEi9WdAJ+rIHdC2LCn0PkF/z4WFGNdjD/fK5OMr1r5Bk+T0PtPU5Iv35XO4TI4T5vsxcwXERGGxmXHap2tb4RTjUw9l2qxsTzChkN4cRPL1e721lYLAsFPEYNnD5g+/3KvacBG6n6SiTY8Mi677Epq/T9+jXPiBFs5QoaV8OxBR6alFuPXPl7vcNaf7zUWTzLfFmk2HsllXQ9nlMTi4+m4McXghu0zDL3ALIKjXrMyrQmDmE1/Zfyy3eNx8XMWDCM5zs0KTzZLzkGICyONzZFl+OkHkfE07tMzxv67SpG26KWZkwMGvZQCNtKH8TGrCGa0XsCClTIErfOh+WwXwDiBfC6Jpr3PRXTroiRi0qzO6XLUujF5H3olR0vZyUggtovgrFG4/x/S6X0JWDoz4=----ATTACHMENT:----MzM1NzMzODMzMTQzODY3MiAyMDE2MTE0NzUzMjY1Mjg0IDk0ODgxNjAyNDk4NjAyNTQ=