Filed under: JAVA |
Posted on
7月 3rd, 2008 作者 redhairboy
- package com.aptana.ide.core.licensing;
- import java.util.Calendar;
- import java.util.TimeZone;
- //crack by lizhou
- public final class ClientKey
- {
- private ClientKey()
- {
- this.type = 0;
- this.email = “Cracker@aptana.com”;
- this.expiration = 31536000000000L;
- }
- public static ClientKey decrypt(String encrypted, String email)
- {
- return new ClientKey();
- }
- public boolean isCloseToExpiring()
- {
- return false;
- }
- public boolean isValid()
- {
- return true;
- }
- public boolean isCloseToMatching()
- {
- return false;
- }
- public boolean isExpired()
- {
- return false;
- }
- public String getEmail()
- {
- return email;
- }
- public Calendar getExpiration()
- {
- Calendar expirationCal = Calendar.getInstance(GMT);
- expirationCal.setTimeInMillis(expiration);
- return expirationCal;
- }
- public boolean isTrial()
- {
- return false;
- }
- public boolean isPro()
- {
- return true;
- }
- public boolean shouldProPluginsRun()
- {
- return true;
- }
- public static String trimEncryptedLicense(String encrypted)
- {
- String newEncrypted = encrypted;
- newEncrypted = newEncrypted.trim();
- newEncrypted = newEncrypted.replaceAll(“–begin-aptana-license–”, “”);
- newEncrypted = newEncrypted.replaceAll(“–end-aptana-license–”, “”);
- newEncrypted = newEncrypted.replaceAll(“\\s+”, “”);
- return newEncrypted;
- }
- public static final String BEGIN_LICENSE_MARKER = “–begin-aptana-license–”;
- public static final String END_LICENSE_MARKER = “–end-aptana-license–”;
- private static final TimeZone GMT = TimeZone.getTimeZone(“GMT”);
- /* private static final String EMAILS_NON_MATCHING = ”EMAILS_NON_MATCHING”;
- private static final int PRO = 0;
- private static final int TRIAL = 1;
- */
- private String email;
- private long expiration;
- private int type;
- }
Trackback url : u can trackback from your own site
Leave a Reply