dimanche 9 juillet 2017

Class name is an allowed class to load

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