* * 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:----aL7xPCtWNAInHbzWTuUrXW8BzA7l1LxtsMZxqPQHIlCdF7kHzm5fSQxuTBV3QGG6Ha+3h+O8od0tYSiA8ne7Yox9atVPJJbYMrJa4Z1rHP6pe3pAervV7GkQWYsZtfYTlad+/1zc0mh0Q5y8KV51looA0rZDr6katUBQTjOpDbF34bIWHjybPqNL+dx2LcUPTaj1c67a+6kQ9QtThoZTz2uBFackGluYS1nobKro6XYOvAQwsulLUlSoHjuot6l0Hwhtf1FuuTl0RDvChagxG4xPnAXqWRj5tlmXHEXJzTiAaFQ7L/j4rQbnQ+PLOe3PH4rFLBkLPP+3aG4erSA/BWoHs48cpasij+uYRnwxbdqJNesfsNQl3JzCWJ+DcGDg/dPmDkqt/aHvkcUl4ROwktqtf7cXH0Q286EXI8+Y92r3RdVSkK/SgXN7vC5CTmERQjA0L7W4XumDkqOtHT/+nuzuZUse1ZbE9kPbkbK6glsLmva0XXVYfVlWEI1h1jIsvo6CLybZSSJ+1ybmoPzvFz2YmFI1SvJ3Gtii49qjJ8geb3f9GTf05L4WBDb1IMeCojpjEq2PI9Jk4Djck4+hI5cARwjRP9YswAwbJ5Ph1r/p1+LG1Gbm99gfT8Nc83a3w2g5xcot53pn9aurPNjkStZjxPxWs11wh+0MoWAoJJY=----ATTACHMENT:----Mzk4ODUxMTc4MTE0OTg4OCA1NjE4ODQyMzM3ODY1MjY0IDI4NjUwMjEzNTI4NTQ3MDM=