Skip to content

Commit

Permalink
Add TKS TPSConnectorService to v2 APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
fmarco76 committed Aug 13, 2024
1 parent fcc9256 commit 1468004
Show file tree
Hide file tree
Showing 6 changed files with 738 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.netscape.certsrv.base.DataCollection;
import com.netscape.certsrv.util.JSONSerializer;

@JsonInclude(Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown=true)
public class TPSConnectorCollection extends DataCollection<TPSConnectorData> {
public class TPSConnectorCollection extends DataCollection<TPSConnectorData> implements JSONSerializer{

@Override
public Collection<TPSConnectorData> getEntries() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
package org.dogtagpki.server.tks.rest.v2;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;

import org.dogtagpki.server.rest.v2.PKIServlet;
import org.dogtagpki.server.tks.TKSEngine;
Expand All @@ -16,6 +17,16 @@
public class TKSServlet extends PKIServlet {
public static final long serialVersionUID = 1L;

protected TKSEngine engine;

@Override
public void init() throws ServletException {
super.init();

engine = getTKSEngine();
}


public TKSEngine getTKSEngine() {
ServletContext servletContext = getServletContext();
return (TKSEngine) servletContext.getAttribute("engine");
Expand Down
Loading

0 comments on commit 1468004

Please sign in to comment.