<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>
  <display-name>MOA SP-SS</display-name>
  <description>MOA Signature Creation and Verification Services</description>
  <servlet>
    <servlet-name>ConfigurationServlet</servlet-name>
    <display-name>MOA Configuration Servlet</display-name>
    <servlet-class>
      at.gv.egovernment.moa.spss.server.service.ConfigurationServlet
    </servlet-class>
    <load-on-startup>0</load-on-startup>
  </servlet>
  <servlet>
    <servlet-name>AxisServlet</servlet-name>
    <display-name>Apache-Axis Servlet</display-name>
    <servlet-class>
      org.apache.axis.transport.http.AxisServlet
    </servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>AxisServlet</servlet-name>
    <url-pattern>/services/*</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>ConfigurationServlet</servlet-name>
    <url-pattern>/ConfigurationUpdate</url-pattern>
  </servlet-mapping>

  <security-constraint>
    <web-resource-collection>
      <web-resource-name>ConfigurationUpdate</web-resource-name>
      <url-pattern>/ConfigurationUpdate</url-pattern>
    </web-resource-collection>
    <auth-constraint>
      <role-name>moa-admin</role-name>
    </auth-constraint>
  </security-constraint>

  <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>UserDatabase</realm-name>
  </login-config>

  <security-role>
    <description>
      The role that is required to log in to the moa Application
    </description>
    <role-name>moa-admin</role-name>
  </security-role>
</web-app>