code: boolean verifySignatureFor(String algorithm, byte[] secretBytes, String header, String payload, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException {
          return verifySignatureFor(algorithm, secretBytes, header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8), signatureBytes);
      }
docs: Verify signature for JWT header and payload.
  
  @param algorithm algorithm name.
  @param secretBytes algorithm secret.
  @param header JWT header.
  @param payload JWT payload.
  @param signatureBytes JWT signature.
  @return true if signature is valid.
  @throws NoSuchAlgorithmException if the algorithm is not supported.
  @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.