private String encodeJwt(HttpMethod httpMethod, URI targetPath, Map<String, String[]> params, String userKeyValue,
AcHost acHost) throws JwtUnknownIssuerException, JwtIssuerLacksSharedSecretException {
checkArgument(null != httpMethod, "HttpMethod argument cannot be null");
checkArgument(null != targetPath, "URI argument cannot be null");
JwtJsonBuilder jsonBuilder = new JsonSmartJwtJsonBuilder()
.issuedAt(TimeUtil.currentTimeSeconds())
.expirationTime(TimeUtil.currentTimePlusNSeconds(jwtExpiryWindowSeconds))
.issuer(AC.PLUGIN_KEY);
if (null != userKeyValue) {