Author: anil.saldhana(a)jboss.com
Date: 2011-05-03 23:59:09 -0400 (Tue, 03 May 2011)
New Revision: 927
Modified:
trust/trunk/jbossws/src/main/java/org/picketlink/trust/jbossws/jaas/SecurityActions.java
Log:
add method
Modified:
trust/trunk/jbossws/src/main/java/org/picketlink/trust/jbossws/jaas/SecurityActions.java
===================================================================
---
trust/trunk/jbossws/src/main/java/org/picketlink/trust/jbossws/jaas/SecurityActions.java 2011-05-04
02:56:58 UTC (rev 926)
+++
trust/trunk/jbossws/src/main/java/org/picketlink/trust/jbossws/jaas/SecurityActions.java 2011-05-04
03:59:09 UTC (rev 927)
@@ -117,6 +117,23 @@
});
}
+ /**
+ * Set the system property
+ * @param key
+ * @param value
+ */
+ static void setSystemProperty( final String key, final String value)
+ {
+ AccessController.doPrivileged(new PrivilegedAction<Object>()
+ {
+ public Object run()
+ {
+ System.setProperty(key, value);
+ return null;
+ }
+ });
+ }
+
static ClassLoader getClassLoader( final Class<?> clazz)
{
return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>()
Show replies by date