public void loadPolicyConfiguration() throws PolicyContextException { boolean inService = getPolicyFactory().inService(CONTEXT_ID); // only regenerate policy file if it isn't already in service // Consequently all things that deploy modules (as apposed to // loading already deployed modules) must make sure pre-exiting // pc is either in deleted or open state before this method // (i.e. initialise) is called. That is, before constructing // the WebSecurityManager. Note that policy statements are not // removed to allow multiple web modules to be represented by same pc. if (!inService) { pc = getPolicyFactory().getPolicyConfiguration(CONTEXT_ID,false); try{ WebPermissionUtil.processConstraints(wbd, pc); WebPermissionUtil.createWebRoleRefPermission(wbd, pc); } catch (PolicyContextException pce){ logger.log(Level.FINE,"[Web-Security] FATAL Permission Generation: " + pce.getMessage()); throw pce; } } }
public void loadPolicyConfiguration() throws PolicyContextException { boolean inService = getPolicyFactory().inService(CONTEXT_ID); // only regenerate policy file if it isn't already in service // Consequently all things that deploy modules (as apposed to // loading already deployed modules) must make sure pre-exiting // pc is either in deleted or open state before this method // (i.e. initialise) is called. That is, before constructing // the WebSecurityManager. Note that policy statements are not // removed to allow multiple web modules to be represented by same pc. if (!inService) { pc = getPolicyFactory().getPolicyConfiguration(CONTEXT_ID,false); try{ WebPermissionUtil.processConstraints(wbd, pc); WebPermissionUtil.createWebRoleRefPermission(wbd, pc); } catch (PolicyContextException pce){ logger.log(Level.FINE,"[Web-Security] FATAL Permission Generation: " + pce.getMessage()); throw pce; } } }