/** * Get the system properties map, doing a faster permission check that skips having to execute a privileged action * frame. * * @return the system property map */ public static Properties getSystemPropertiesPrivileged() { final SecurityManager sm = System.getSecurityManager(); if (sm == null) { return getProperties(); } if (sm instanceof WildFlySecurityManager) { final Context ctx = CTX.get(); if (! ctx.checking) { return getProperties(); } ctx.checking = false; try { checkPDPermission(getCallerClass(2), PROPERTIES_PERMISSION); return getProperties(); } finally { ctx.checking = true; } } else { checkPDPermission(getCallerClass(2), PROPERTIES_PERMISSION); return doPrivileged(GetSystemPropertiesAction.getInstance()); } }
/** * Get the system properties map, doing a faster permission check that skips having to execute a privileged action * frame. * * @return the system property map */ public static Properties getSystemPropertiesPrivileged() { final SecurityManager sm = System.getSecurityManager(); if (sm == null) { return getProperties(); } if (sm instanceof WildFlySecurityManager) { final Context ctx = CTX.get(); if (! ctx.checking) { return getProperties(); } ctx.checking = false; try { checkPDPermission(getCallerClass(2), PROPERTIES_PERMISSION); return getProperties(); } finally { ctx.checking = true; } } else { checkPDPermission(getCallerClass(2), PROPERTIES_PERMISSION); return doPrivileged(GetSystemPropertiesAction.getInstance()); } }
/** * Get the system properties map, doing a faster permission check that skips having to execute a privileged action * frame. * * @return the system property map */ public static Properties getSystemPropertiesPrivileged() { final SecurityManager sm = System.getSecurityManager(); if (sm == null) { return getProperties(); } if (sm instanceof WildFlySecurityManager) { final Context ctx = CTX.get(); if (! ctx.checking) { return getProperties(); } ctx.checking = false; try { checkPDPermission(getCallerClass(2), PROPERTIES_PERMISSION); return getProperties(); } finally { ctx.checking = true; } } else { checkPDPermission(getCallerClass(2), PROPERTIES_PERMISSION); return doPrivileged(GetSystemPropertiesAction.getInstance()); } }
/** * Get the system properties map, doing a faster permission check that skips having to execute a privileged action * frame. * * @return the system property map */ public static Properties getSystemPropertiesPrivileged() { final SecurityManager sm = System.getSecurityManager(); if (sm == null) { return getProperties(); } if (sm instanceof WildFlySecurityManager) { final Context ctx = CTX.get(); if (! ctx.checking) { return getProperties(); } ctx.checking = false; try { checkPDPermission(getCallerClass(2), PROPERTIES_PERMISSION); return getProperties(); } finally { ctx.checking = true; } } else { checkPDPermission(getCallerClass(2), PROPERTIES_PERMISSION); return doPrivileged(GetSystemPropertiesAction.getInstance()); } }
/** * Get the system properties map, doing a faster permission check that skips having to execute a privileged action * frame. * * @return the system property map */ public static Properties getSystemPropertiesPrivileged() { final SecurityManager sm = System.getSecurityManager(); if (sm == null) { return getProperties(); } if (sm instanceof WildFlySecurityManager) { final Context ctx = CTX.get(); if (! ctx.checking) { return getProperties(); } ctx.checking = false; try { checkPDPermission(getCallerClass(2), PROPERTIES_PERMISSION); return getProperties(); } finally { ctx.checking = true; } } else { checkPDPermission(getCallerClass(2), PROPERTIES_PERMISSION); return doPrivileged(GetSystemPropertiesAction.getInstance()); } }