The Hamas Charter, Article 1, says:
"1. The Islamic Resistance Movement “Hamas” is a Palestinian Islamic national liberation and resistance movement. Its goal is to liberate Palestine and confront the Zionist project. Its frame of reference is Islam, which determines its principles, objectives and means."
Article 16 of the Hamas Charter is very interesting, as it defines and specifies the aim of Hamas:
"16. Hamas affirms that its conflict is with the Zionist project not with the Jews because of their religion. Hamas does not wage a struggle against the Jews because they are Jewish but wages a struggle against the Zionists who occupy Palestine. Yet, it is the Zionists who constantly identify Judaism and the Jews with their own colonial project and illegal entity."
It is especially significant that the Hamas Charter addresses the Israeli tendency to deliberately - and falsely - conflate anti-Zionism with anti-Semitism.
Article 17 of the Hamas Charter is also important, as it places the true blame for anti-Semitism at the feet of the Europeans, where it belongs:
"17. Hamas rejects the persecution of any human being or the undermining of his or her rights on nationalist, religious or sectarian grounds. Hamas is of the view that the Jewish problem, anti-Semitism and the persecution of the Jews are phenomena fundamentally linked to European history and not to the history of the Arabs and the Muslims or to their heritage. The Zionist movement, which was able with the help of Western powers to occupy Palestine, is the most dangerous form of settlement occupation which has already disappeared from much of the world and must disappear from Palestine."
This article is also important as the first part is designed to differentiate between Hamas and Israel, a state which DOES undermine the rights of Palestinians and others "on nationalist, religious [and] sectarian grounds".
The Hamas Charter outlines a struggle for liberation of the Palestinian people and the destruction of the Zionist ethno-nationalist state - a position that many non-Hamas people agree with.
No state that defines itself on ethno-religious grounds and affords special rights and privileges to people who are of one specific ethnic and/or religious group, while discriminating against those who do not belong to that group, deserves to exist.
When we are asked "does Israel have a right to exist?" we must be careful to reply conditionally, i.e., "yes, but not as a racist apartheid regime".
That is also what Hamas spells out in detail in its charter.