public function isValid(SessionBagInterface $sessionBag)
    {
        return $sessionBag->get(self::PARAM_REMOTE_ADDR) === $this->hash($this->getRemoteAddr()) &&
               $sessionBag->get(self::PARAM_USER_AGENT) === $this->hash($this->getUserAgent());
    }