private function authenticateUser(TokenInterface $token, UserInterface $user)
    {
        if (null === $this->_encoderFactory) {
            return $this->authenticateWithoutEncoder($token, $user);
        } else {
            return $this->authenticateWithEncoder($token, $user);
        }
    }