code: public String sign(JWTCreator.Builder builder) {
          // use the strongest algorithm;
          return builder.sign(Algorithm.ECDSA512(ecPublicKey, ecPrivateKey));
      }
docs: Sign the jwt  builder. Use this if you want to control issueing time, expiration time, and issuer.
  @param builder
  @return jwt token.