| .. | .. |
|---|
| 61 | 61 | public void validateHW(RequestBean reqBean, String licTypeCode, String customerCode, String packCode) throws SeCurisException { |
|---|
| 62 | 62 | RequestBean currentHW = ReqGenerator.getInstance().createRequest(licTypeCode, customerCode, packCode); |
|---|
| 63 | 63 | if (!currentHW.match(reqBean)) { |
|---|
| 64 | | - throw new SeCurisException("Current System info mismatch the License System info:\n Licensed: \n" + JsonUtils.toPrettyJSON(reqBean) |
|---|
| 65 | | - + "\n Expected: \n" + JsonUtils.toPrettyJSON(currentHW)); |
|---|
| 64 | + throw new SeCurisException("Current System info mismatch the License System info:\n Licensed: \n" |
|---|
| 65 | + + JsonUtils.toPrettyJSON(reqBean, RequestBean.class) + "\n Expected: \n" + JsonUtils.toPrettyJSON(currentHW)); |
|---|
| 66 | + } |
|---|
| 67 | + } |
|---|
| 68 | + |
|---|
| 69 | + public void validateHW(RequestBean reqBean, String appCode, String activationCode) throws SeCurisException { |
|---|
| 70 | + RequestBean currentHW = ReqGenerator.getInstance().createRequest(appCode, activationCode); |
|---|
| 71 | + if (!currentHW.match(reqBean)) { |
|---|
| 72 | + throw new SeCurisException("Current System info mismatch the License System info:\n Licensed: \n" |
|---|
| 73 | + + JsonUtils.toPrettyJSON(reqBean, RequestBean.class) + "\n Expected: \n" + JsonUtils.toPrettyJSON(currentHW)); |
|---|
| 66 | 74 | } |
|---|
| 67 | 75 | } |
|---|
| 68 | 76 | |
|---|