From 6fc6ae727f82f2e3d8b94a7ddddf8db15d919600 Mon Sep 17 00:00:00 2001 From: ameba23 Date: Tue, 20 Jul 2021 11:40:53 +0200 Subject: [PATCH] Handle security exception when setting handshake public key --- .../org/briarproject/bramble/api/contact/ContactManager.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bramble-api/src/main/java/org/briarproject/bramble/api/contact/ContactManager.java b/bramble-api/src/main/java/org/briarproject/bramble/api/contact/ContactManager.java index 1cb466993..ed645e6e7 100644 --- a/bramble-api/src/main/java/org/briarproject/bramble/api/contact/ContactManager.java +++ b/bramble-api/src/main/java/org/briarproject/bramble/api/contact/ContactManager.java @@ -214,13 +214,14 @@ public interface ContactManager { * Sets the contact's handshake public key */ void setHandshakePublicKey(Transaction txn, ContactId c, - PublicKey handshakePublicKey) throws DbException; + PublicKey handshakePublicKey) throws DbException, + GeneralSecurityException; /** * Sets the contact's handshake public key */ void setHandshakePublicKey(ContactId c, PublicKey handshakePublicKey) - throws DbException; + throws DbException, GeneralSecurityException; /** * Returns true if a contact with this {@code remoteAuthorId} belongs to