/** * Prepare for security operations. One of the operations * that is undertaken is to establish the JAAS {@code Configuration} * that uses our xml based configuration. * @see #release() to release the configuration */ public static void prepare() { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(new RuntimePermission(SecurityFactory.class.getName() + ".prepare")); } if(Configuration.getConfiguration() instanceof ApplicationPolicyRegistration == false) { standaloneConfiguration.setParentConfig(parentConfiguration); Configuration.setConfiguration(standaloneConfiguration); } }
/** * Prepare for security operations. One of the operations * that is undertaken is to establish the JAAS {@code Configuration} * that uses our xml based configuration. * @see #release() to release the configuration */ public static void prepare() { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(new RuntimePermission(SecurityFactory.class.getName() + ".prepare")); } if(Configuration.getConfiguration() instanceof ApplicationPolicyRegistration == false) { standaloneConfiguration.setParentConfig(parentConfiguration); Configuration.setConfiguration(standaloneConfiguration); } }