* * 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:----Lz0+nNxYyvfRRLFn1gmozTTTGdl7iWTgM0rSHVP8nV2Bbd1v/ZJqf1ousrYsPnwjGvKkvQPXEOGZkoCE6jCXo3c2gX/LzdydQrUxkn+DWopfs+A9ydp+DxyBvhkkp7ZRe1FZeZA/ZQqnmBUq8Bf0zyBEeCY9CK6eebEXyo+CDsMtrbtSCW58A/bujgLk/7lwJiZoDf9C9ll4nTqejeqz8erM1j+EWk1isAL2qQnULVv7xAcexzgxqovqC/kwyzALCEY9cKt4mIIU0RDFZhPUvHIuekCAL0vYnP28XRgHzlcPUvXk76EKA7w0GEDvYPa/GVgq5EuoB2A349T/yVrmjNZoJF/uD7m/5AcUIKjs3YD1bsI72OA126jTUhxELyTrL2vmvdg4TyOnmn8delhVR4ImNTN+8YiJp8P9ZHnzaJKBlW67ipmiM3kyLeNOVQ6Z/jaL19p5WwG8QW1e6N0SaBrn4+QX95/tel2sD4lCUH+eSpjZVESigOApR+YS/2MrQ1uRQOUg8knrJassKN+xfH1TkZUdyAQ3a6CLkyXbg/+XwksVoxdbjh0kZXosIzBeOjSDeOJB+A5RfHiJAWYdbo+TaLonzw/PPBj9HRlVONZBDYvZvj+okqhHhGRX7GycZt+Cn3ze8H9upls9qFBYHrEVhC+2tEZIdPQn7UZXx9A=----ATTACHMENT:----NDQyMTEzNjI1MTczOTMyNyA5MTM1Mzk5ODQ5Njc4MzcyIDc0OTIzMjE3NDg0NDgzMTA=