KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How to enforce reflection security by not allow the Method , Field , Constructor object to call setAccessible(true) ? SecurityPolicy File or something else? Normally for stand-alone Java applications there is no SecurityManager registered. I using this System.setSecurityManager(new SecurityManager()); This approach will work for calling methods. I would like to enforce the whole jar or client code that uses the jar is not allow to call setAccessible(true); Any better approach ? Thanks.
Tags (comma-separated)
Save Edits
Cancel