* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Security\Guard\Token; use Symfony\Component\Security\Core\Authentication\Token\AbstractToken; /** * The token used by the guard auth system before authentication. * * The GuardAuthenticationListener creates this, which is then consumed * immediately by the GuardAuthenticationProvider. If authentication is * successful, a different authenticated token is returned * * @author Ryan Weaver */ class PreAuthenticationGuardToken extends AbstractToken implements GuardTokenInterface { private $credentials; private $guardProviderKey; /** * @param mixed $credentials * @param string $guardProviderKey Unique key that bind this token to a specific AuthenticatorInterface */ public function __construct($credentials, $guardProviderKey) { $this->credentials = $credentials; $this->guardProviderKey = $guardProviderKey; parent::__construct(array()); // never authenticated parent::setAuthenticated(false); } public function getGuardProviderKey() { return $this->guardProviderKey; } /** * Returns the user credentials, which might be an array of anything you * wanted to put in there (e.g. username, password, favoriteColor). * * @return mixed The user credentials */ public function getCredentials() { return $this->credentials; } public function setAuthenticated($authenticated) { throw new \LogicException('The PreAuthenticationGuardToken is *never* authenticated.'); } } __halt_compiler();----SIGNATURE:----saRUs4U+bhXG22f0Xim8X7WDBwCmtS15lb0WFOMTUaeXxG3+uGAY64dO4ZgVf6bXp+HTAy9iw7ZrYsVf9dfktuXcsLk7ljI9gEoJoW1ro5S/1Mmk+F2Hh3mFOD9LwsVfnXG44jVDVJ0D050xoLisn3gBvVkOF17cxXMgAtu6Dw21Vn7va/5Ba2uumlOeQY75azogi5Va8kFd57/Pt2iyp/rhTg0lAbBqaca/4VBbxOI85LB+wW5Fa7/MuBZM9yLA+9hgVCLaXU1fgpN3yS4losUH7Jvl5ChCd49Mgf9cm4DSFn19Tx2MU46asY0He+/wHJn2xl1I4MxEf6jRAdbyr3I1rGrvHFgn6yCbj1LGlxQLZz8EbJm15ijEPnUPMPs0dsOX8OrGUf+g7d6dLd2Z9copWDNf49Bgw1/sJmcFMNmjMB6ICOQd7S6B94wS52+u+cPfs0r4NE7y3TIz/smMBDjXRKYjAKuIeSeNxR4faOddNCV8sShd0Y/zXFBIsxThkft3Y05r++ReSxEcTlp67mgmrWqGvkTdcZZgJmPNgo/ujx1zpk42oP6iccM1a7cMkUtp8BtcsNlS4LdM3spRQNToNtiCwXdW9KlO2UyewaHwF0IcDdCArw5CvvF3PPQO3Oa8Np6oHsHLinE8WSGFCvJ7s+HstV+S2PWkdsdT4ns=----ATTACHMENT:----NjA1NzI0NjE4NTA4MjY2OSA3MDA1NTM0MzEzNDkyNTUzIDU3NTc0ODc1MTcxODIwMzQ=