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