/* 405 */ if (localUserLicense != null) {
/* */ try {
/* 407 */ if (eO.a(localUserLicense)) {
/* 408 */ jdField_a_of_type_Int = 1;
/* */ }
/* 410 */ ObjectInputStream localObjectInputStream = new ObjectInputStream(new ByteArrayInputStream(localUserLicense.getLicense()));
/* 411 */ localMap = (Map)localObjectInputStream.readObject();
/* 412 */ localObjectInputStream.close();
/* */
/* 414 */ if ((!("JavaRebel".equals(localMap.get("Product")))) && (!("JRebel".equals(localMap.get("Product"))))) {
/* 415 */ jdField_a_of_type_Int = 0;
/* */ }
/* 417 */ iH.log("License information: " + localMap);
/* */
/* 420 */ boolean bool1 = Boolean.valueOf((String)localMap.get("commercial")).booleanValue();
/* 421 */ if ((jdField_a_of_type_Int == 1) && (bool1)) {
/* 422 */ jdField_a_of_type_Int = 3;
/* */ }
/* */
/* 425 */ localObject = (String)localMap.get("limited");
/* */
/* 427 */ if ((localObject != null) && (jdField_a_of_type_Int == 1)) {
/* 428 */ if (((String)localObject).equals("true")) {
/* 429 */ jdField_a_of_type_Int = 2;
/* 430 */ jn.a("License: evaluation");
/* */ }
/* 432 */ else if (((String)localObject).equals("scala")) {
/* 433 */ jdField_a_of_type_Int = 2;
/* 434 */ jdField_b_of_type_Int |= 1;
/* 435 */ jn.a("License: scala");
/* */ }
/* 437 */ else if (((String)localObject).equals("liverebel")) {
/* 438 */ jdField_a_of_type_Int = 2;
/* 439 */ jdField_b_of_type_Int |= 2;
/* 440 */ jn.a("License: liverebel");
/* */ }
/* */ }
/* 443 */ if (jdField_a_of_type_Int == 1) {
/* 444 */ localDate2 = (Date)localMap.get("validUntil");
/* 445 */ localDate3 = (Date)localMap.get("validFrom");
/* */ }
/* 447 */ else if (jdField_a_of_type_Int == 2) {
/* 448 */ localDate2 = (Date)localMap.get("limitedUntil");
/* 449 */ localDate3 = (Date)localMap.get("limitedFrom");
/* */ }
/* */
/* 452 */ if (c.contains(localMap.get("uid")))
/* 453 */ jdField_a_of_type_Int = 0;
/* */ }
/* */ catch (Exception localException1)
/* */ {
/* 457 */ iH.log("Exception checking the JRebel License");
/* 458 */ localException1.printStackTrace();
/* 459 */ iH.error(localException1);
/* */ }
/* */ }
/* */
/* 463 */ iH.echo();
/* 464 */ iH.echo("#############################################################");
/* 465 */ iH.echo();
/* 466 */ iH.echo(" JRebel " + str1 + " (" + ((jdField_a_of_type_JavaLangClass == null) ? (jS.jdField_a_of_type_JavaLangClass = a("com.zeroturnaround.javarebel.java4.Install")) : jdField_a_of_type_JavaLangClass).getPackage().getImplementationTitle() + ")");
/* 467 */ iH.echo(" (c) Copyright ZeroTurnaround, Ltd, 2007-2009. All rights reserved.");
/* 468 */ iH.echo();
/* */
/* 470 */ if (gA.c()) {
/* */ try {
/* 472 */ NumberFormat localNumberFormat = NumberFormat.getNumberInstance();
/* 473 */ localNumberFormat.setMinimumFractionDigits(0);
/* 474 */ localNumberFormat.setMaximumFractionDigits(1);
/* */
/* 476 */ String str3 = localNumberFormat.format(cU.a() * 96.0D / 3600.0D);
/* 477 */ localObject = localNumberFormat.format(cU.a() * 195.0D / 3600.0D);
/* */
/* 479 */ String str4 = localNumberFormat.format(cU.b() * 96.0D / 3600.0D);
/* 480 */ String str5 = localNumberFormat.format(cU.b() * 195.0D / 3600.0D);
/* */
/* 482 */ String str6 = "" + (cU.c() + 1);
/* 483 */ String str7 = "" + (cU.c() + 1);
/* */
/* 485 */ iH.echo(" A rough estimate: Over the last " + str6 + " days JRebel ");
/* 486 */ iH.echo(" prevented the need for at least " + cU.a() + " redeploys/restarts.");
/* 487 */ iH.echo(" Using industry standard build and redeploy times, ");
/* 488 */ iH.echo(" JRebel saved you between " + str3 + " and " + ((String)localObject) + " hours.");
/* */
/* 490 */ if (cU.c() > 60) {
/* 491 */ iH.echo(" Over the last " + str7 + " days JRebel saved you");
/* 492 */ iH.echo(" between " + str4 + " and " + str5 + " hours.");
/* */ }
/* */
/* 495 */ iH.echo();
/* */ }
/* */ catch (Exception localException2) {
/* 498 */ iH.error(localException2);
/* */ }
/* */ }
/* */
/* 502 */ if (jdField_a_of_type_Int == 3) {
/* 503 */ jdField_a_of_type_Boolean = true;
/* */
/* 505 */ str2 = (String)localMap.get("Seats");
/* */
/* 507 */ bool2 = ("1".equals(str2)) && (((localMap.get("Organization") == null) || ("".equals(localMap.get("Organization"))) || (((String)localMap.get("Organization")).equalsIgnoreCase("personal"))));
/* */
/* 511 */ localObject = new StringBuffer(" This product is licensed to ");
/* 512 */ if ((bool2) && (localMap.get("Name") != null) && (!("".equals(localMap.get("Name"))))) {
/* 513 */ ((StringBuffer)localObject).append(localMap.get("Name"));
/* */
/* 515 */ if ((localMap.get("Organization") != null) && (!("".equals(localMap.get("Organization"))))) {
/* 516 */ ((StringBuffer)localObject).append(" (");
/* 517 */ ((StringBuffer)localObject).append(localMap.get("Organization"));
/* 518 */ ((StringBuffer)localObject).append(") ");
/* */ }
/* 520 */ jn.a("License: personal");
/* */ }
/* */ else {
/* 523 */ ((StringBuffer)localObject).append(localMap.get("Organization"));
/* 524 */ jn.a("License: corporate");
/* */ }
/* */
/* 527 */ iH.echo(((StringBuffer)localObject).toString());
/* */
/* 529 */ if ("Unlimited".equals(str2)) {
/* 530 */ iH.echo(" for unlimited number of developer seats on site.");
/* */ }
/* 532 */ else if ((str2 != null) && (!(bool2))) {
/* 533 */ iH.echo(" for up to " + str2 + " developer seats on site. ");
/* */ }
/* 535 */ else if (bool2) {
/* 536 */ iH.echo(" for personal use only. ");
/* */ }
/* */
/* 539 */ if ((localMap.get("Comment") != null) && (!("".equals(localMap.get("Comment"))))) {
/* 540 */ iH.echo(" " + localMap.get("Comment"));
/* */ }
/* */
/* 543 */ if (localDate2 != null) {
/* 544 */ a(localDate1, localDate2);
/* */ }
/* */
/* 547 */ iH.echo();
/* 548 */ iH.echo("#############################################################");
/* 549 */ iH.echo();
/* */ }
/* 551 */ else if (jdField_a_of_type_Int == 2) {
/* 552 */ if (((jdField_b_of_type_Int & 0x2) == 0) && ((((localDate2 != null) && (localDate1.after(localDate2))) || ((localDate3 != null) && (localDate1.before(localDate3))))))
/* */ {
/* 555 */ iH.echo(" YOUR JREBEL LIMITED LICENSE HAS EXPIRED!");
/* */ }
/* */ else {
/* 558 */ jdField_a_of_type_Boolean = true;
/* */ }
/* */
/* 561 */ if ((jdField_b_of_type_Int & 0x2) == 0) {
/* 562 */ str2 = (String)localMap.get("Seats");
/* */
/* 564 */ bool2 = "1".equals(str2);
/* */
/* 566 */ localObject = new StringBuffer(" This product is licensed to ");
/* 567 */ if ((bool2) && (localMap.get("Name") != null) && (!("".equals(localMap.get("Name"))))) {
/* 568 */ ((StringBuffer)localObject).append(localMap.get("Name"));
/* */
/* 570 */ if ((localMap.get("Organization") != null) && (!("".equals(localMap.get("Organization"))))) {
/* 571 */ ((StringBuffer)localObject).append(" (");
/* 572 */ ((StringBuffer)localObject).append(localMap.get("Organization"));
/* 573 */ ((StringBuffer)localObject).append(") ");
/* */ }
/* */ }
/* */ else {
/* 577 */ ((StringBuffer)localObject).append(localMap.get("Organization"));
/* */ }
/* */
/* 580 */ iH.echo(((StringBuffer)localObject).toString());
/* */
/* 582 */ if (localDate2 != null) {
/* 583 */ iH.echo(" until " + SimpleDateFormat.getDateInstance(1, Locale.ENGLISH).format(localDate2));
/* */ }
/* */
/* 586 */ if ("Unlimited".equals(str2)) {
/* 587 */ iH.echo(" for unlimited number of developer seats on site.");
/* */ }
/* 589 */ else if ((str2 != null) && (!("1".equals(str2)))) {
/* 590 */ iH.echo(" for up to " + str2 + " developer seats on site. ");
/* */ }
/* */
/* 593 */ if ((localMap.get("Comment") != null) && (!("".equals(localMap.get("Comment"))))) {
/* 594 */ iH.echo(" With the following restrictions: ");
/* 595 */ iH.echo(" " + ((String)localMap.get("Comment")));
/* */ }
/* */
/* 598 */ if (localDate2 != null) {
/* 599 */ a(localDate1, localDate2);
/* */ }
/* */ }
/* */
/* 603 */ if (localMap.get("Organization") != null) {
/* 604 */ str2 = (String)localMap.get("Organization");
/* 605 */ if (str2.indexOf("[Open-Source]") != -1) {
/* 606 */ jn.a("Giveaway: OSS");
/* */ }
/* */
/* */ }
/* */
/* 613 */ iH.echo();
/* 614 */ iH.echo("#############################################################");
/* 615 */ iH.echo();
/* */ }
/* 617 */ else if (jdField_a_of_type_Int == 1) {
/* 618 */ if ((localDate2 == null) || (localDate1.after(localDate2))) {
/* 619 */ iH.echo(" YOUR JREBEL EVALUATION LICENSE HAS EXPIRED!");
/* */ }
/* 621 */ else if ((localDate3 == null) || (localDate1.before(localDate3))) {
/* 622 */ iH.echo(" YOUR JREBEL EVALUATION COULD NOT HAVE STARTED YET!");
/* */ }
/* */ else {
/* 625 */ jdField_a_of_type_Boolean = true;
/* */
/* 627 */ long l1 = localDate2.getTime() - localDate1.getTime();
/* 628 */ long l2 = l1 / 86400000L;
/* */
/* 630 */ iH.echo(" You are running JRebel evaluation license.");
/* 631 */ iH.echo(" You have " + (l2 + 1L) + " days until the license expires. ");
/* 632 */ iH.echo();
/* 633 */ iH.echo(" You will see this notification until you obtain a ");
/* 634 */ iH.echo(" full license for your installation. ");
/* */ }
/* 636 */ iH.echo(" ");
/* 637 */ iH.echo(" Visit for instructions on obtaining ");
/* 638 */ iH.echo(" a full license. If you wish to continue your evaluation ");
/* 639 */ iH.echo(" please e-mail to support@zeroturnaround.com. ");
/* 640 */ iH.echo(" ");
/* 641 */ iH.echo(" If you think you should not see this message contact ");
/* 642 */ iH.echo(" support@zeroturnaround.com or check that you have your ");
/* 643 */ iH.echo(" license file in the same directory as the JAR file. ");
/* 644 */ iH.echo(" ");
/* 645 */ iH.echo("#############################################################");
/* 646 */ iH.echo();
/* */
/* 649 */ eO.a(localUserLicense);
/* */ }
/* */ else {
/* 652 */ iH.echo(" YOU DO NOT HAVE A VALID JREBEL LICENSE! ");
/* 653 */ iH.echo(" ");
/* 654 */ iH.echo(" Visit for instructions on obtaining ");
/* 655 */ iH.echo(" a full or evaluation license. ");
/* 656 */ iH.echo(" ");
/* 657 */ iH.echo(" If you think you should not see this message contact ");
/* 658 */ iH.echo(" support@zeroturnaround.com or check that you have your ");
/* 659 */ iH.echo(" license file in the same directory as the JAR file. ");
/* 660 */ iH.echo(" ");
/* 661 */ iH.echo("#############################################################");
/* 662 */ iH.echo();
/* */ }
/* */
/* 665 */ if (!(jdField_a_of_type_Boolean)) {
/* 666 */ System.exit(1);
/* */ }
JRebal(原名JavaRebel)破解小记(5)
内容版权声明:除非注明,否则皆为本站原创文章。