mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-10 02:39:39 +02:00
Introduce SigningResult class to allow for additional signing information to be returned
This commit is contained in:
parent
987c328ad8
commit
f2d88d8a86
5 changed files with 70 additions and 15 deletions
|
@ -15,6 +15,7 @@ import java.util.List;
|
|||
import picocli.CommandLine;
|
||||
import sop.MicAlg;
|
||||
import sop.ReadyWithResult;
|
||||
import sop.SigningResult;
|
||||
import sop.cli.picocli.Print;
|
||||
import sop.cli.picocli.SopCLI;
|
||||
import sop.enums.SignAs;
|
||||
|
@ -93,9 +94,10 @@ public class SignCmd implements Runnable {
|
|||
}
|
||||
|
||||
try {
|
||||
ReadyWithResult<MicAlg> ready = sign.data(System.in);
|
||||
MicAlg micAlg = ready.writeTo(System.out);
|
||||
ReadyWithResult<SigningResult> ready = sign.data(System.in);
|
||||
SigningResult result = ready.writeTo(System.out);
|
||||
|
||||
MicAlg micAlg = result.getMicAlg();
|
||||
if (micAlgOut != null) {
|
||||
// Write micalg out
|
||||
micAlgOut.createNewFile();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue