Skip to content

Commit

Permalink
refactor: remove unused String sigLine variable
Browse files Browse the repository at this point in the history
  • Loading branch information
hamirmahal committed Feb 18, 2024
1 parent 2d8ff36 commit 714915a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions util/src/main/java/edu/sjsu/moth/util/HttpSignature.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,9 @@ public static boolean validateSignatureHeader(String method, URI uri, HttpHeader
SignatureException {
var toValidate = generateHeadersToSign(method, uri, headers, List.of(signedHeaders.split(" ")));
var signer = newSigner();
String sigLine = null;
signer.initVerify(publicKey);
signer.update(toValidate);
return signer.verify(Base64.getMimeDecoder().decode(signature));

}

public static PublicKey pemToPublicKey(String publicKeyPEM) {
Expand Down

0 comments on commit 714915a

Please sign in to comment.