Skip to content

Commit

Permalink
Update TKSGetStatus to use @WebServlet
Browse files Browse the repository at this point in the history
  • Loading branch information
edewata committed Sep 14, 2023
1 parent a3088c2 commit 3ed5165
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
16 changes: 0 additions & 16 deletions base/tks/shared/webapps/tks/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,6 @@

<display-name>Token Key Service</display-name>

<servlet>
<servlet-name> tksGetStatus </servlet-name>
<servlet-class> com.netscape.cms.servlet.csadmin.TKSGetStatus </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> tks </param-value> </init-param>
<init-param><param-name> ID </param-name>
<param-value> tksGetStatus </param-value> </init-param>
</servlet>

<servlet-mapping>
<servlet-name> tksGetStatus </servlet-name>
<url-pattern> /admin/tks/getStatus </url-pattern>
</servlet-mapping>

<security-constraint>
<web-resource-collection>
<web-resource-name>Account Services</web-resource-name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@
// --- END COPYRIGHT BLOCK ---
package com.netscape.cms.servlet.csadmin;

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

@WebServlet(
name = "tksGetStatus",
urlPatterns = "/admin/tks/getStatus",
initParams = {
@WebInitParam(name="GetClientCert", value="false"),
@WebInitParam(name="authority", value="tks"),
@WebInitParam(name="ID", value="tksGetStatus")
}
)
public class TKSGetStatus extends GetStatus {
private static final long serialVersionUID = 1L;
}

0 comments on commit 3ed5165

Please sign in to comment.