Skip to content

Commit

Permalink
FDP-1737: comment Jasper
Browse files Browse the repository at this point in the history
Signed-off-by: Loes Immens <[email protected]>
  • Loading branch information
loesimmens committed Jan 30, 2024
1 parent e9f452c commit d471fb3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public boolean verify(final SignableMessageWrapper<?> message) {
messageSignature.get(signatureBytes);

try {
return this.tryToVerify(message, signatureBytes);
return this.verifySignableMessage(message, signatureBytes);
} catch (final SignatureException e) {
throw new UncheckedSecurityException("Unable to verify message signature", e);
} finally {
Expand Down Expand Up @@ -234,13 +234,13 @@ public <T> boolean verifyRecordHeader(final SignableMessageWrapper<T> message, f
}

try {
return this.tryToVerify(message, signatureBytes);
return this.verifySignableMessage(message, signatureBytes);
} catch (final SignatureException e) {
throw new UncheckedSecurityException("Unable to verify message signature", e);
}
}

private boolean tryToVerify(final SignableMessageWrapper<?> message, final byte[] signatureBytes)
private boolean verifySignableMessage(final SignableMessageWrapper<?> message, final byte[] signatureBytes)
throws SignatureException {
message.setSignature(null);
synchronized (this.verificationSignature) {
Expand Down

0 comments on commit d471fb3

Please sign in to comment.