/** * @param event - Event to be processed. * @throws AdminEventListenerException when the listener is unable to * process the event. */ public <T extends ConfigBeanProxy> NotProcessed handleUpdate(T instance) { NotProcessed np = null; if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, "MessageSecurityConfigEventListenerImpl - " + "handleUpdate called"); } //Handle only the MessageSecurityConfig. if (instance instanceof MessageSecurityConfig) { GFServerConfigProvider.loadConfigContext(service); } else { np = new NotProcessed("unimplemented: unknown instance: " + instance.getClass().getName()); } return np; }
/** * Causes a dynamic anthentication context configuration object to * update the internal state that it uses to process calls to its * <code>getAuthContext</code> method. * * @exception AuthException if an error occured during the update. * * @exception SecurityException if the caller does not have permission * to refresh the configuration object. */ public void refresh() { loadParser(provider, factory, null); }
protected ModuleInfo getModuleInfo(String authContextID, Map properties) throws AuthException { if (!init) { initialize(properties); } MessagePolicy[] policies = null; if (GFServerConfigProvider.HTTPSERVLET.equals(layer)) { policies = AuthMessagePolicy.getHttpServletPolicies (authContextID); } else { policies = AuthMessagePolicy.getSOAPPolicies (binding, authContextID, onePolicy); } MessagePolicy requestPolicy = policies[0]; MessagePolicy responsePolicy = policies[1]; Entry entry = getEntry(layer, providerID, requestPolicy, responsePolicy, type); return (entry != null)? createModuleInfo(entry, handler, type, properties) : null; }
/** * Create an object of a given class. * @param className * */ private static Object createObject(final String className) { final ClassLoader loader = getClassLoader(); if (System.getSecurityManager() != null) { try { return AccessController.doPrivileged (new PrivilegedExceptionAction() { public Object run() throws Exception { Class c = Class.forName(className, true, loader); return c.newInstance(); } }); } catch (PrivilegedActionException pae) { throw new RuntimeException(pae.getException()); } } try { Class c = Class.forName(className, true, loader); return c.newInstance(); } catch (Throwable t) { throw new RuntimeException(t); } }
ConfigParser nextParser; int next = epoch + 1; nextParser = (ConfigParser)createObject(parserClassName); nextParser.initialize(config);
AuthConfigProvider configProvider = ((nullConfigProvider)? null : new GFServerConfigProvider(new HashMap(), null)); String jmacProviderRegisID = factory.registerConfigProvider( configProvider,
public GFServerConfigProvider(Map properties, AuthConfigFactory factory) { this.factory = factory; initializeParser();
GFServerConfigProvider.setValidateRequestSubject(s); if(_logger.isLoggable(Level.FINE)){ _logger.log(Level.FINE,
protected ModuleInfo getModuleInfo(String authContextID, Map properties) throws AuthException { if (!init) { initialize(properties); } MessagePolicy[] policies = null; if (GFServerConfigProvider.HTTPSERVLET.equals(layer)) { policies = AuthMessagePolicy.getHttpServletPolicies (authContextID); } else { policies = AuthMessagePolicy.getSOAPPolicies (binding, authContextID, onePolicy); } MessagePolicy requestPolicy = policies[0]; MessagePolicy responsePolicy = policies[1]; Entry entry = getEntry(layer, providerID, requestPolicy, responsePolicy, type); return (entry != null)? createModuleInfo(entry, handler, type, properties) : null; }
/** * Create an object of a given class. * @param className * */ private static Object createObject(final String className) { final ClassLoader loader = getClassLoader(); if (System.getSecurityManager() != null) { try { return AccessController.doPrivileged (new PrivilegedExceptionAction() { public Object run() throws Exception { Class c = Class.forName(className, true, loader); return c.newInstance(); } }); } catch (PrivilegedActionException pae) { throw new RuntimeException(pae.getException()); } } try { Class c = Class.forName(className, true, loader); return c.newInstance(); } catch (Throwable t) { throw new RuntimeException(t); } }
ConfigParser nextParser; int next = epoch + 1; nextParser = (ConfigParser)createObject(parserClassName); nextParser.initialize(config);
AuthConfigProvider configProvider = ((nullConfigProvider)? null : new GFServerConfigProvider(new HashMap(), null)); String jmacProviderRegisID = factory.registerConfigProvider( configProvider,
public GFServerConfigProvider(Map properties, AuthConfigFactory factory) { this.factory = factory; initializeParser();
GFServerConfigProvider.setValidateRequestSubject(s); if(_logger.isLoggable(Level.FINE)){ _logger.log(Level.FINE,
/** * Causes a dynamic anthentication context configuration object to * update the internal state that it uses to process calls to its * <code>getAuthContext</code> method. * * @exception AuthException if an error occured during the update. * * @exception SecurityException if the caller does not have permission * to refresh the configuration object. */ public void refresh() { loadParser(provider, factory, null); }
/** * @param event Event to be processed. * @throws AdminEventListenerException when the listener is unable to * process the event. */ public <T extends ConfigBeanProxy> NotProcessed handleCreate(T instance) { NotProcessed np = null; if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, "MessageSecurityConfigEventListenerImpl - " + "handleCreate called"); } if (instance instanceof MessageSecurityConfig) { GFServerConfigProvider.loadConfigContext(service); } else { np = new NotProcessed("unimplemented: unknown instance: " + instance.getClass().getName()); } return np; }
final ClassLoader finalLoader = getClassLoader(); Class c = Class.forName(moduleClassName, true,
/** * Causes a dynamic configuration provider to update its internal * state such that any resulting change to its state is reflected in * the corresponding authentication context configuration objects * previously created by the provider within the current process context. * * @exception AuthException if an error occured during the refresh. * * @exception SecurityException if the caller does not have permission * to refresh the provider. */ public void refresh() { loadParser(this, factory, null); }
/** * @param event - Event to be processed. * @throws AdminEventListenerException when the listener is unable to * process the event. */ public <T extends ConfigBeanProxy> NotProcessed handleUpdate(T instance) { NotProcessed np = null; if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, "MessageSecurityConfigEventListenerImpl - " + "handleUpdate called"); } //Handle only the MessageSecurityConfig. if (instance instanceof MessageSecurityConfig) { GFServerConfigProvider.loadConfigContext(service); } else { np = new NotProcessed("unimplemented: unknown instance: " + instance.getClass().getName()); } return np; }
final ClassLoader finalLoader = getClassLoader(); Class c = Class.forName(moduleClassName, true,