Handle security exception when setting handshake public key

This commit is contained in:
ameba23
2021-07-20 11:40:53 +02:00
parent b7d71a21b0
commit 6fc6ae727f

View File

@@ -214,13 +214,14 @@ public interface ContactManager {
* Sets the contact's handshake public key * Sets the contact's handshake public key
*/ */
void setHandshakePublicKey(Transaction txn, ContactId c, void setHandshakePublicKey(Transaction txn, ContactId c,
PublicKey handshakePublicKey) throws DbException; PublicKey handshakePublicKey) throws DbException,
GeneralSecurityException;
/** /**
* Sets the contact's handshake public key * Sets the contact's handshake public key
*/ */
void setHandshakePublicKey(ContactId c, PublicKey handshakePublicKey) void setHandshakePublicKey(ContactId c, PublicKey handshakePublicKey)
throws DbException; throws DbException, GeneralSecurityException;
/** /**
* Returns true if a contact with this {@code remoteAuthorId} belongs to * Returns true if a contact with this {@code remoteAuthorId} belongs to