Skip to content

Commit

Permalink
Update OCSPOCSPServlet to use @WebServlet
Browse files Browse the repository at this point in the history
  • Loading branch information
edewata committed Sep 9, 2023
1 parent 0ee1361 commit 9b7a19c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 25 deletions.
25 changes: 0 additions & 25 deletions base/ocsp/shared/webapps/ocsp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,21 +102,6 @@
<param-value> /services.template </param-value> </init-param>
</servlet>

<servlet>
<servlet-name> ocspOCSP </servlet-name>
<servlet-class> com.netscape.cms.servlet.ocsp.OCSPOCSPServlet </servlet-class>
<init-param><param-name> GetClientCert </param-name>
<param-value> false </param-value> </init-param>
<init-param><param-name> AuthzMgr </param-name>
<param-value> BasicAclAuthz </param-value> </init-param>
<init-param><param-name> authority </param-name>
<param-value> ocsp </param-value> </init-param>
<init-param><param-name> ID </param-name>
<param-value> ocspOCSP </param-value> </init-param>
<init-param><param-name> resourceID </param-name>
<param-value> certServer.ee.request.ocsp </param-value> </init-param>
</servlet>

<servlet>
<servlet-name> ocspDownloadPKCS12 </servlet-name>
<servlet-class> com.netscape.cms.servlet.csadmin.DownloadPKCS12 </servlet-class>
Expand Down Expand Up @@ -253,16 +238,6 @@
<url-pattern> /agent/header </url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name> ocspOCSP </servlet-name>
<url-pattern> /ee/ocsp </url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name> ocspOCSP </servlet-name>
<url-pattern> /ee/ocsp/* </url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name> services </servlet-name>
<url-pattern> /services </url-pattern>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,23 @@
// --- END COPYRIGHT BLOCK ---
package com.netscape.cms.servlet.ocsp;

import javax.servlet.annotation.WebInitParam;
import javax.servlet.annotation.WebServlet;

@WebServlet(
name = "ocspOCSP",
urlPatterns = {
"/ee/ocsp",
"/ee/ocsp/*"
},
initParams = {
@WebInitParam(name="GetClientCert", value="false"),
@WebInitParam(name="AuthzMgr", value="BasicAclAuthz"),
@WebInitParam(name="authority", value="ocsp"),
@WebInitParam(name="ID", value="ocspOCSP"),
@WebInitParam(name="resourceID", value="certServer.ee.request.ocsp")
}
)
public class OCSPOCSPServlet extends OCSPServlet {
private static final long serialVersionUID = 1L;
}

0 comments on commit 9b7a19c

Please sign in to comment.