Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/com/google/crypto/tink/JsonKeysetReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public Keyset read() throws IOException {
try {
return keysetFromJson(
JsonParser.parse(new String(Util.readAll(inputStream), UTF_8)).getAsJsonObject());
} catch (JsonParseException | IllegalStateException e) {
} catch (JsonParseException | IllegalStateException | UnsupportedOperationException e) {
throw new IOException(e);
} finally {
if (inputStream != null) {
Expand All @@ -177,7 +177,7 @@ public EncryptedKeyset readEncrypted() throws IOException {
try {
return encryptedKeysetFromJson(
JsonParser.parse(new String(Util.readAll(inputStream), UTF_8)).getAsJsonObject());
} catch (JsonParseException | IllegalStateException e) {
} catch (JsonParseException | IllegalStateException | UnsupportedOperationException e) {
throw new IOException(e);
} finally {
if (inputStream != null) {
Expand Down