| java.lang.Object jwebtk.licensing.LicenseGenerator
LicenseGenerator | final public class LicenseGenerator (Code) | | This class is used to generate permanent and time based license keys that
can be used with LicenseCheck.
This is not a fool proof license, only a deterence.
|
generatePassword | final public static String generatePassword()(Code) | | Returns a randomly generated password suitable for generating license keys.
a randomly generated password |
generatePermanentKey | final public static String generatePermanentKey(String match1, String match2, String password) throws LicenseException(Code) | | Generates a permanent license key that will never expire.
Parameters: match1 - First match string Parameters: match2 - Second match string Parameters: password - a suitable password (at least 8 characters) for encryption/decryption of the license key a license key |
generateTimeKey | final public static String generateTimeKey(int weeks, String match1, String match2, String password) throws LicenseException(Code) | | Generates a time based license key that will expire after a defined number of weeks.
Parameters: weeks - number of weeks before license expires Parameters: match1 - First match string Parameters: match2 - Second match string Parameters: password - a suitable password (at least 8 characters) for encryption/decryption of the license key a license key |
|
|