code: public String generate(String secret) {
      return generate(secret == null ? null : secret.getBytes(StandardCharsets.UTF_8));
    }
docs: Encode this instance to JWT standard format.
  
  @param secret the signature key
  @return [header].[payload].[signature]