In java to pass the values between some classes we can use System.setProperty. But using System.getProperties() we can get all the system propertie
System.setProperty
System.getProperties()
If you need to worry about the behavior of libraries, you need to learn about and use a security policy and a SecurityManager. Amongst other things, this will allow you to restrict the use of System.setProperty.