protected PolicyConfigurationImpl getPolicyConfigurationImpl(String contextId) { PolicyConfigurationImpl pci = getPolicyConfigImpl(contextId); if (pci == null) { // check if pc was copied into the filesystem after the repository // was initialized (do not open pc or remove policy statements). pci = getPolicyConfigurationImplFromDirectory(contextId,false,false); if (pci == null) { logger.log(Level.WARNING,"pc.unknown_policy_context", new Object[]{contextId}); } } return pci; }
protected PolicyConfigurationImpl getPolicyConfigurationImpl(String contextId) { PolicyConfigurationImpl pci = getPolicyConfigImpl(contextId); if (pci == null) { // check if pc was copied into the filesystem after the repository // was initialized (do not open pc or remove policy statements). pci = getPolicyConfigurationImplFromDirectory(contextId,false,false); if (pci == null) { logger.log(Level.WARNING,"pc.unknown_policy_context", new Object[]{contextId}); } } return pci; }
/** * This method determines if the identified policy context * exists with state "inService" in the Policy provider * associated with the factory. * <P> * @param contextID A string identifying a policy context * * @return true if the identified policy context exists within the * provider and its state is "inService", false otherwise. * * @throws java.lang.SecurityException * when called by an AccessControlContext that has not been * granted the "setPolicy" SecurityPermission. * * @throws javax.security.jacc.PolicyContextException * if the implementation throws a checked exception that has not been * accounted for by the inService method signature. The exception thrown * by the implementation class will be encapsulated (during construction) * in the thrown PolicyContextException. */ public boolean inService(String contextID) throws PolicyContextException{ checkSetPolicyPermission(); PolicyConfiguration pc = getPolicyConfigImpl(contextID); // if the pc is not in the table, see if it was copied into the // filesystem (e.g. by the DAS) if (pc == null) { pc = getPolicyConfigurationImplFromDirectory(contextID,false,false); } return pc == null ? false : pc.inService(); }
/** * This method determines if the identified policy context * exists with state "inService" in the Policy provider * associated with the factory. * <P> * @param contextID A string identifying a policy context * * @return true if the identified policy context exists within the * provider and its state is "inService", false otherwise. * * @throws java.lang.SecurityException * when called by an AccessControlContext that has not been * granted the "setPolicy" SecurityPermission. * * @throws javax.security.jacc.PolicyContextException * if the implementation throws a checked exception that has not been * accounted for by the inService method signature. The exception thrown * by the implementation class will be encapsulated (during construction) * in the thrown PolicyContextException. */ public boolean inService(String contextID) throws PolicyContextException{ checkSetPolicyPermission(); PolicyConfiguration pc = getPolicyConfigImpl(contextID); // if the pc is not in the table, see if it was copied into the // filesystem (e.g. by the DAS) if (pc == null) { pc = getPolicyConfigurationImplFromDirectory(contextID,false,false); } return pc == null ? false : pc.inService(); }
logger.fine("JACC Policy Provider: Getting PolicyConfiguration object with id = "+ contextId); PolicyConfigurationImpl pci = getPolicyConfigImpl(contextId);
logger.fine("JACC Policy Provider: Getting PolicyConfiguration object with id = "+ contextId); PolicyConfigurationImpl pci = getPolicyConfigImpl(contextId);