title: Verifying hmac sha1 signature in Java
body: <p>I'd like to know how I could verify the signature I created. My code to create a signature  looks similar to this one: <a href="https://stackoverflow.com/questions/6312544/hmac-sha1-how-to-do-it-properly-in-java">HMAC-SHA1: How to do it properly in Java?</a></p>
  
  <p>I send the message, the signature and the public key to verify the signature. Public and private key are generated using KeyPairGenerator. How can I use the public key I have to verify my signature? Or maybe can you suggest any good libraries for Java for signing and verifying signature that use HMAC SHA1?</p>