1 22 package org.jboss.test.profileservice.simple1; 23 24 import java.security.PrivilegedAction ; 25 import java.security.AccessController ; 26 27 33 class SecurityActions 34 { 35 static String getSystemProperty(final String name) 36 { 37 PrivilegedAction <String > action = new PrivilegedAction <String >() 38 { 39 public String run() 40 { 41 return System.getProperty(name); 42 } 43 }; 44 return AccessController.doPrivileged(action); 45 } 46 } 47 | Popular Tags |