private static String generateJWT(String secret,String jwtID,String iss,Integer ttl,Map<String,String> claims) throws HmacException {
  try {
    return signJWT(secret,jwtID,ttl,iss,claims);
  }
 catch (  JOSEException e) {
    e.printStackTrace();
    throw new HmacException("Cannot generate JWT",e);
  }
}

private static String generateJWT ( String secret , String jwtID , String iss , Integer ttl , Map < String , String > claims ) throws HmacException { try { return signJWT ( secret , jwtID , ttl , iss , claims ) ; } catch ( JOSEException e ) { e . printStackTrace ( ) ; throw new HmacException ( "Cannot generate JWT" , e ) ; } }
generate a new signed jwt
