awips2/edexOsgi/com.raytheon.uf.edex.registry.ebxml/web/etc/jettyServer.xml
Benjamin Phillippe 6cb73e63a1 Omaha #3350 Added user/role authentication. Added XACML authorization
Change-Id: Id307fdc04ba7a74c9e81650c7b4ba272405cf6df

Former-commit-id: 81d0249971d4004067b6aef672e00417ddb83b36
2014-07-16 10:49:24 -05:00

109 lines
No EOL
3.5 KiB
XML

<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
<!-- This file configures the Jetty Server used by the ebxml registry. This
file is read in by the class com.raytheon.uf.edex.registry.ebxml.web.RegistryWebServer -->
<Configure id="RegistryWebServer" class="org.eclipse.jetty.server.Server">
<Set name="ThreadPool">
<New class="org.eclipse.jetty.util.thread.QueuedThreadPool">
<Arg>
<New class="java.util.concurrent.ArrayBlockingQueue">
<Arg type="int">500</Arg>
</New>
</Arg>
<Set name="minThreads">5</Set>
<Set name="maxThreads">
<SystemProperty name="ebxml-webserver-max-threads"
default="8" />
</Set>
</New>
</Set>
<Call name="addConnector">
<Arg>
<New
class="com.raytheon.uf.edex.registry.ebxml.web.security.SslNetworkTrafficSelectChannelConnector">
<Arg>
<New class="com.raytheon.uf.edex.registry.ebxml.web.security.RegistrySSLContextFactory">
<Set name="keyStore">
<SystemProperty name="edex.security.keystore.path" />
</Set>
<Set name="keyStorePassword">
<SystemProperty name="edex.security.keystore.password" />
</Set>
<Set name="keyManagerPassword">
<SystemProperty name="edex.security.keystore.password" />
</Set>
<Set name="trustStore">
<SystemProperty name="edex.security.truststore.path" />
</Set>
<Set name="trustStorePassword">
<SystemProperty name="edex.security.truststore.password" />
</Set>
</New>
</Arg>
<Set name="port">
<SystemProperty name="ebxml.registry.webserver.port"
default="8082" />
</Set>
<Set name="maxIdleTime">30000</Set>
</New>
</Arg>
</Call>
<Set name="handler">
<New
class="com.raytheon.uf.edex.registry.ebxml.web.security.RegistryIPAccessHandler">
<Call name="setIPAccessControl" />
<Set name="handler">
<New class="org.eclipse.jetty.server.handler.HandlerList">
<Set name="handlers">
<Array type="org.eclipse.jetty.server.Handler">
<Item>
<New class="org.eclipse.jetty.webapp.WebAppContext">
<Set name="securityHandler">
<New class="org.eclipse.jetty.security.ConstraintSecurityHandler">
<Set name="loginService">
<New class="org.eclipse.jetty.plus.jaas.JAASLoginService">
<Set name="name"><SystemProperty name="edex.security.auth.loginService.name" /></Set>
<Set name="loginModuleName"><SystemProperty name="edex.security.auth.loginService.realm" /></Set>
</New>
</Set>
</New>
</Set>
<Set name="descriptor">WEB-INF/web.xml</Set>
<Set name="resourceBase">
<SystemProperty name="ebxml.registry.webserver.home" />
</Set>
<Set name="contextPath">/</Set>
<Set name="parentLoaderPriority">true</Set>
<Set name="war">
<SystemProperty name="ebxml.registry.webserver.home" />
</Set>
<Set name="systemClasses">
<Array type="java.lang.String">
<Item>java.</Item>
<Item>javax.</Item>
<Item>org.</Item>
<Item>com.</Item>
<Item>gov.</Item>
<Item>ch.</Item>
<Item>net.</Item>
<Item>edu.</Item>
</Array>
</Set>
</New>
</Item>
<Item>
<New class="org.eclipse.jetty.server.handler.DefaultHandler">
</New>
</Item>
</Array>
</Set>
</New>
</Set>
</New>
</Set>
</Configure>