diff options
author | Tor Brede Vekterli <vekterli@yahooinc.com> | 2023-02-14 13:35:56 +0100 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@yahooinc.com> | 2023-02-14 13:35:56 +0100 |
commit | 39a6af7be859561bc78afac0ef5158b7efd47429 (patch) | |
tree | 059de47005a7fd5f188bdc2f02f243770f86ebab /vespaclient-java | |
parent | ecddf69fd08d050ca121c6123797a39b6f3e92bf (diff) |
Correct checks for redirected I/O during interactive token resealing
Diffstat (limited to 'vespaclient-java')
-rw-r--r-- | vespaclient-java/src/main/java/com/yahoo/vespa/security/tool/crypto/DecryptTool.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vespaclient-java/src/main/java/com/yahoo/vespa/security/tool/crypto/DecryptTool.java b/vespaclient-java/src/main/java/com/yahoo/vespa/security/tool/crypto/DecryptTool.java index 4b3608fc3f7..8c85f7be49d 100644 --- a/vespaclient-java/src/main/java/com/yahoo/vespa/security/tool/crypto/DecryptTool.java +++ b/vespaclient-java/src/main/java/com/yahoo/vespa/security/tool/crypto/DecryptTool.java @@ -146,7 +146,7 @@ public class DecryptTool implements Tool { private static SecretSharedKey secretFromInteractiveResealing(ToolInvocation invocation, String inputArg, String outputArg, SealedSharedKey sealedSharedKey) throws IOException { - if (!CliUtils.useStdIo(outputArg) || !CliUtils.useStdIo(inputArg)) { + if (CliUtils.useStdIo(outputArg) || CliUtils.useStdIo(inputArg)) { throw new IllegalArgumentException("Interactive token resealing not available with redirected I/O"); } var session = SharedKeyResealingSession.newEphemeralSession(); |