-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The pki tps-client has been added to replace tpsclient to make it easier to maintain TPS client code and to troubleshoot TPS issues. Currently it will simply reuse libpki-tps.so but in the future the native code will gradually be converted to Java. The tpsclient has been deprecated and will be removed in the future. The basic TPS test has been updated to test both pki tps-client and tpsclient.
- Loading branch information
Showing
9 changed files
with
184 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
base/tools/src/main/java/com/netscape/cmstools/tps/TPSClientCLI.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// | ||
// Copyright Red Hat, Inc. | ||
// | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
// | ||
package com.netscape.cmstools.tps; | ||
|
||
import org.apache.commons.cli.CommandLine; | ||
import org.dogtagpki.cli.CommandCLI; | ||
|
||
import com.netscape.cmstools.cli.MainCLI; | ||
|
||
/** | ||
* @author Endi S. Dewata | ||
*/ | ||
public class TPSClientCLI extends CommandCLI { | ||
|
||
public static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(TPSClientCLI.class); | ||
|
||
static { | ||
System.loadLibrary("pki-tps"); | ||
} | ||
|
||
public TPSCLI tpsCLI; | ||
|
||
public TPSClientCLI(TPSCLI tpsCLI) { | ||
super("client", "TPS client", tpsCLI); | ||
this.tpsCLI = tpsCLI; | ||
} | ||
|
||
@Override | ||
public void printHelp() { | ||
formatter.printHelp(getFullName() + " [OPTIONS...]", options); | ||
} | ||
|
||
public native void execute() throws Exception; | ||
|
||
@Override | ||
public void execute(CommandLine cmd) throws Exception { | ||
|
||
MainCLI mainCLI = (MainCLI) getRoot(); | ||
mainCLI.init(); | ||
|
||
execute(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
= Tools Changes = | ||
|
||
== Deprecate tpsclient == | ||
|
||
`tpsclient` has been deprecated. Use `pki tps-client` instead. |