Java tutorial
public class Main { public static void main(String[] args) { System.setProperty("java.security.policy", "file:/C:/java.policy"); SecurityManager sm = new SecurityManager(); System.setSecurityManager(sm); Object con = sm.getSecurityContext(); System.out.println(con); } }