According to Javanese tradition, the Senopati who was Joko Tingkir's foster son was assassinated Arya Penangsang of Jipang-Panola, making him the last direct heir of the Sultans of Demak. His death established the legitimacy of the Sultanate of Pajang.[2]