/** * 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(); }
throws PolicyContextException { checkSetPolicyPermission(); if(logger.isLoggable(Level.FINE)){ logger.fine("JACC Policy Provider: Getting PolicyConfiguration object with id = "+ contextId);
throws PolicyContextException { checkSetPolicyPermission(); if(logger.isLoggable(Level.FINE)){ logger.fine("JACC Policy Provider: Getting PolicyConfiguration object with id = "+ contextId);