|
10 | 10 | import io.opentdf.platform.sdk.Config.AssertionVerificationKeys; |
11 | 11 | import io.opentdf.platform.sdk.SDK; |
12 | 12 | import io.opentdf.platform.sdk.SDKBuilder; |
13 | | -import io.opentdf.platform.sdk.TDF; |
14 | 13 | import nl.altindag.ssl.SSLFactory; |
15 | 14 | import org.apache.commons.codec.DecoderException; |
16 | 15 | import picocli.CommandLine; |
|
23 | 22 | import java.io.FileInputStream; |
24 | 23 | import java.io.IOException; |
25 | 24 | import java.io.PrintWriter; |
26 | | -import java.net.URISyntaxException; |
27 | 25 | import java.nio.ByteBuffer; |
28 | 26 | import java.nio.channels.FileChannel; |
29 | 27 | import java.nio.charset.StandardCharsets; |
|
36 | 34 | import java.security.spec.InvalidKeySpecException; |
37 | 35 | import java.security.spec.PKCS8EncodedKeySpec; |
38 | 36 | import java.security.spec.X509EncodedKeySpec; |
39 | | -import java.text.ParseException; |
40 | 37 | import java.util.ArrayList; |
41 | 38 | import java.util.Base64; |
42 | 39 | import java.util.List; |
|
51 | 48 | */ |
52 | 49 | class Versions { |
53 | 50 | // Version of the SDK, managed by release-please. |
54 | | - public static final String SDK = "0.7.10-SNAPSHOT"; // x-release-please-version |
| 51 | + public static final String SDK = "0.8.2-SNAPSHOT"; // x-release-please-version |
55 | 52 |
|
56 | 53 | // This sdk aims to support this version of the TDF spec; currently 4.3.0. |
57 | 54 | public static final String TDF_SPEC = "4.3.0"; |
@@ -165,7 +162,7 @@ void encrypt( |
165 | 162 | @Option(names = { "--with-assertions" }, defaultValue = Option.NULL_VALUE) Optional<String> assertion, |
166 | 163 | @Option(names = { "--with-target-mode" }, defaultValue = Option.NULL_VALUE) Optional<String> targetMode) |
167 | 164 |
|
168 | | - throws IOException, JOSEException, AutoConfigureException, InterruptedException, ExecutionException, DecoderException { |
| 165 | + throws IOException, AutoConfigureException { |
169 | 166 |
|
170 | 167 | var sdk = buildSDK(); |
171 | 168 | var kasInfos = kas.stream().map(k -> { |
@@ -300,8 +297,7 @@ void decrypt(@Option(names = { "-f", "--file" }, required = true) Path tdfPath, |
300 | 297 | @CommandLine.Command(name = "metadata") |
301 | 298 | void readMetadata(@Option(names = { "-f", "--file" }, required = true) Path tdfPath, |
302 | 299 | @Option(names = { "--kas-allowlist" }, defaultValue = Option.NULL_VALUE) Optional<String> kasAllowlistStr, |
303 | | - @Option(names = { "--ignore-kas-allowlist" }, defaultValue = Option.NULL_VALUE) Optional<Boolean> ignoreAllowlist) throws IOException, |
304 | | - TDF.FailedToCreateGMAC, JOSEException, NoSuchAlgorithmException, ParseException, DecoderException, InterruptedException, ExecutionException, URISyntaxException { |
| 300 | + @Option(names = { "--ignore-kas-allowlist" }, defaultValue = Option.NULL_VALUE) Optional<Boolean> ignoreAllowlist) throws IOException { |
305 | 301 | var sdk = buildSDK(); |
306 | 302 | var opts = new ArrayList<Consumer<Config.TDFReaderConfig>>(); |
307 | 303 | try (var in = FileChannel.open(tdfPath, StandardOpenOption.READ)) { |
|
0 commit comments