code: @Deprecated
      boolean verifySignatureFor(String algorithm, PublicKey publicKey, byte[] contentBytes, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
          final Signature s = Signature.getInstance(algorithm);
          s.initVerify(publicKey);
          s.update(contentBytes);
          return s.verify(signatureBytes);
      }
docs: Verify signature using a public key.
  
  @param algorithm algorithm name.
  @param publicKey algorithm public key.
  @param contentBytes the content to which the signature applies.
  @param signatureBytes JWT signature.
  @return the signature bytes.
  @throws NoSuchAlgorithmException if the algorithm is not supported.
  @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
  @throws SignatureException if this signature object is not initialized properly or if this signature algorithm is unable to process the input data provided.
  @deprecated rather use corresponding method which takes header and payload as separate inputs