I am using java. I have a String with a class name which the code tries to load using reflection. I would like to check if the class is of a specific type which I allow and not some other class. How can I do it without loading the class first. I am afraid it is a malicious class.
Aucun commentaire:
Enregistrer un commentaire