Skip to content

Commit

Permalink
Update OCSPTokenAuthenticate to use @WebServlet
Browse files Browse the repository at this point in the history
  • Loading branch information
edewata committed Sep 12, 2023
1 parent 93f0eef commit 77c6fe5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 18 deletions.
18 changes: 0 additions & 18 deletions base/ocsp/shared/webapps/ocsp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,6 @@

<display-name>Online Certificate Status Protocol Manager</display-name>

<servlet>
<servlet-name> ocspTokenAuthenticate </servlet-name>
<servlet-class> com.netscape.cms.servlet.csadmin.OCSPTokenAuthenticate </servlet-class>
<init-param><param-name> GetClientCert </param-name>
<param-value> false </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> ocspTokenAuthenticate </param-value> </init-param>
<init-param><param-name> interface </param-name>
<param-value> ee </param-value> </init-param>
</servlet>

<servlet>
<servlet-name> ocspTokenAuthenticate-admin </servlet-name>
<servlet-class> com.netscape.cms.servlet.csadmin.OCSPTokenAuthenticateAdmin </servlet-class>
Expand All @@ -33,11 +20,6 @@
<param-value> admin </param-value> </init-param>
</servlet>

<servlet-mapping>
<servlet-name> ocspTokenAuthenticate </servlet-name>
<url-pattern> /ee/ocsp/tokenAuthenticate </url-pattern>
</servlet-mapping>

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

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

@WebServlet(
name = "ocspTokenAuthenticate",
urlPatterns = "/ee/ocsp/tokenAuthenticate",
initParams = {
@WebInitParam(name="GetClientCert", value="false"),
@WebInitParam(name="authority", value="ocsp"),
@WebInitParam(name="ID", value="ocspTokenAuthenticate"),
@WebInitParam(name="interface", value="ee")
}
)
public class OCSPTokenAuthenticate extends TokenAuthenticate {
private static final long serialVersionUID = 1L;
}

0 comments on commit 77c6fe5

Please sign in to comment.