Debian Codegraph @

jetty-ee9/jetty-ee9-tests/jetty-ee9-test-integration/src/test/resources/login-service.xml

raw
1 <?xml version="1.0"?>
2 <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://www.eclipse.org/jetty/configure_9_3.dtd">
3
4 <Configure id="Server" class="org.eclipse.jetty.server.Server">
5 <!-- =========================================================== -->
6 <!-- Configure Authentication Login Service -->
7 <!-- Realms may be configured for the entire server here, or -->
8 <!-- they can be configured for a specific web app in a context -->
9 <!-- configuration (see $(jetty.home)/webapps/test.xml for an -->
10 <!-- example). -->
11 <!-- =========================================================== -->
12
13 <Call id="ResourceFactory" class="org.eclipse.jetty.util.resource.ResourceFactory" name="of">
14 <Arg><Ref refid="Server" /></Arg>
15 <Call id="realmResource" name="newResource">
16 <Arg><Property name="login.realm" default="src/test/resources/realm.properties"/></Arg>
17 </Call>
18 </Call>
19
20
21 <Call name="addBean">
22 <Arg>
23 <New class="org.eclipse.jetty.security.HashLoginService">
24 <Set name="name">Test Realm</Set>
25 <Set name="config"><Ref refid="realmResource"/></Set>
26 <Set name="hotReload">false</Set>
27 </New>
28 </Arg>
29 </Call>
30 </Configure>