| .. | .. |
|---|
| 221 | 221 | } |
|---|
| 222 | 222 | |
|---|
| 223 | 223 | public static void main(String[] args) throws SeCurisException { |
|---|
| 224 | | - String filename = "/Users/rob/.doxr/config_server.lic"; |
|---|
| 224 | + String filename = "/Users/rob/.doxr/doxr.lic"; |
|---|
| 225 | 225 | |
|---|
| 226 | 226 | if (filename == null) |
|---|
| 227 | 227 | filename = "./license.req"; |
|---|
| 228 | 228 | File file = new File(filename); |
|---|
| 229 | 229 | LicenseManager.getInstance().validateLicense(file); |
|---|
| 230 | + LOG.info("Validation Ok"); |
|---|
| 231 | + String r = "{\"licenseTypeCode\":\"DX01\",\"packCode\":\"DEVDX01\",\"arch\":\"x86_64\",\"osName\":\"darwin\",\"customerCode\":\"CIT\",\"macAddresses\":[\"60:c5:47:03:cf:c8\",\"b2:00:12:b6:88:e0\"]}"; |
|---|
| 232 | + RequestBean rb = JsonUtils.json2object(r, RequestBean.class); |
|---|
| 233 | + System.out.println(rb); |
|---|
| 230 | 234 | LOG.info("Request file {} generated OK", file.getAbsolutePath()); |
|---|
| 231 | 235 | |
|---|
| 232 | 236 | } |
|---|