List of usage examples for java.lang SecurityManager getSecurityContext
public Object getSecurityContext()
From source file:Main.java
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);//ww w .j a va2s. c om }