Who can witness an affidavit in South Australia?

The question of who can “witness an affidavit” in South Australia comes up quite often, not only in the context of litigation, but also in relation to such things as witnessing an Enduring Power of Attorney.