Allows permission class to be determined from class name, or can be manually defined