public class License
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
checkForNewMessage()
Method to check for a messages saved for the license or product on
Online.License4J.
|
java.lang.String[] |
checkForNewMessage(java.lang.String licenseServer)
Method to check for new messages saved for the license or product on Auto
License Generation and Activation Server.
|
java.lang.String |
checkForUpdate(java.lang.String productEdition,
java.lang.String productVersion)
Method to check for software update on Auto License Generation and
Activation Server.
|
java.lang.String |
checkForUpdate(java.lang.String productEdition,
java.lang.String productVersion,
java.lang.String licenseServer)
Method to check for software update on Auto License Generation and
Activation Server.
|
java.lang.String |
checkForUpdateMessage(java.lang.String productEdition,
java.lang.String newVersion)
Method to check for software update message on Online.License4J for the
given new version.
|
java.lang.String |
checkForUpdateMessage(java.lang.String productEdition,
java.lang.String newVersion,
java.lang.String licenseServer)
Method to check for software update message on Auto License Generation
and Activation Server for the given new version.
|
ActivationStatus |
getActivationStatus()
Method returns activation status after activation.
|
int |
getFloatingLicenseServerVersion()
Method to get floating license server version.
|
int |
getLicenseActivationDaysRemaining(java.util.Date currentDate)
Returns days remaining for activation if license requires activation.
|
int |
getLicenseActivationPeriod(java.util.Date currentDate)
Returns activation period if license requires activation.
|
LicenseKey |
getLicenseKey()
Returns LicenseKey object.
|
java.lang.String |
getLicenseString()
Returns license string in plain text.
|
LicenseText |
getLicenseText()
Returns LicenseText object.
|
java.lang.String |
getManualActivationRequestString()
Return activation request string.
|
java.lang.String |
getManualActivationRequestStringWithCustomHardwareID(java.lang.String customHardwareID)
Return activation request string with given custom hardware ID.
|
java.lang.String |
getManualActivationRequestStringWithCustomHardwareIDWithUserInformation(java.lang.String customHardwareID,
boolean modifyOnlyOnFirstActivation,
java.lang.String fullname,
java.lang.String registeredto,
java.lang.String email,
java.lang.String company,
java.lang.String street,
java.lang.String telnumber,
java.lang.String faxnumber,
java.lang.String city,
java.lang.String zip,
java.lang.String country)
Return activation request string with given custom hardware ID and with
user information to modify.
|
java.lang.String |
getManualActivationRequestStringWithUserInformation(boolean modifyOnlyOnFirstActivation,
java.lang.String fullname,
java.lang.String registeredto,
java.lang.String email,
java.lang.String company,
java.lang.String street,
java.lang.String telnumber,
java.lang.String faxnumber,
java.lang.String city,
java.lang.String zip,
java.lang.String country)
Return activation request string with user information to modify.
|
java.lang.String |
getManualDeactivationRequestString()
Return deactivation request string.
|
java.lang.String |
getManualModificationRequestString(java.lang.String modificationKey)
Return manual modification request string.
|
ModificationStatus |
getModificationStatus()
Method returns modification status.
|
java.lang.String |
getPublicKey()
Returns license public key string.
|
int |
getUseCountAllowed()
If license is a Online License Key Floating Over Internet, and maximum
allowed use count is defined, this method returns defined maximum allowed
use count otherwise returns 0.
|
int |
getUseCountCurrent()
If license is an Online License Key Floating Over Internet, and maximum
allowed use count is defined, this method returns current use count
otherwise returns 0.
|
java.lang.String |
getUsedModificationKeys()
If license is activated and activation return type is license text, and
if it is modified before with one or more than one modification key, this
method returns key separated with a space.
|
long |
getUseTimeCurrent()
If license is a Online License Key Floating Over Internet, and maximum
allowed use time limit is defined, this method returns current use time
in seconds otherwise returns 0.
|
long |
getUseTimeLimitAllowed()
If license is a Online License Key Floating Over Internet, and maximum
allowed use time limit is defined, this method returns defined maximum
allowed use time in seconds otherwise returns 0.
|
ValidationStatus |
getValidationStatus()
Method returns validation status after validation.
|
boolean |
isActivationCompleted()
Returns if activation completed, check isActivationRequired before.
|
boolean |
isActivationRequired()
Returns if activation required.
|
void |
releaseFloatingLicense()
Method first stops license and server check timer tasks which starts
after license validation of Floating License Text and Online License Key
Floating Over Internet, then releases obtained license and set License
ValidationStatus to LICENSE_INVALID and set license text to null.
|
void |
stopFloatingLicenseCheckTimers()
Method stops license and server check timer tasks which starts after
license validation of Floating License Text and Online License Key
Floating Over Internet.
|
public ValidationStatus getValidationStatus()
public ModificationStatus getModificationStatus()
public ActivationStatus getActivationStatus()
public java.lang.String getLicenseString()
public java.lang.String getManualActivationRequestString()
public java.lang.String getManualActivationRequestStringWithCustomHardwareID(java.lang.String customHardwareID)
customHardwareID
- public java.lang.String getManualActivationRequestStringWithUserInformation(boolean modifyOnlyOnFirstActivation, java.lang.String fullname, java.lang.String registeredto, java.lang.String email, java.lang.String company, java.lang.String street, java.lang.String telnumber, java.lang.String faxnumber, java.lang.String city, java.lang.String zip, java.lang.String country)
modifyOnlyOnFirstActivation
- fullname
- registeredto
- email
- company
- street
- telnumber
- faxnumber
- city
- zip
- country
- public java.lang.String getManualActivationRequestStringWithCustomHardwareIDWithUserInformation(java.lang.String customHardwareID, boolean modifyOnlyOnFirstActivation, java.lang.String fullname, java.lang.String registeredto, java.lang.String email, java.lang.String company, java.lang.String street, java.lang.String telnumber, java.lang.String faxnumber, java.lang.String city, java.lang.String zip, java.lang.String country)
customHardwareID
- modifyOnlyOnFirstActivation
- fullname
- registeredto
- email
- company
- street
- telnumber
- faxnumber
- city
- zip
- country
- public java.lang.String getManualModificationRequestString(java.lang.String modificationKey)
modificationKey
- public java.lang.String getManualDeactivationRequestString()
public java.lang.String getPublicKey()
public boolean isActivationRequired()
public boolean isActivationCompleted()
public int getLicenseActivationDaysRemaining(java.util.Date currentDate)
currentDate
- public int getLicenseActivationPeriod(java.util.Date currentDate)
currentDate
- public LicenseText getLicenseText()
public LicenseKey getLicenseKey()
public int getUseCountCurrent()
public int getUseCountAllowed()
public long getUseTimeCurrent()
public long getUseTimeLimitAllowed()
public java.lang.String getUsedModificationKeys()
public void stopFloatingLicenseCheckTimers()
public void releaseFloatingLicense()
public int getFloatingLicenseServerVersion()
public java.lang.String[] checkForNewMessage()
public java.lang.String[] checkForNewMessage(java.lang.String licenseServer)
licenseServer
- public java.lang.String checkForUpdate(java.lang.String productEdition, java.lang.String productVersion)
productEdition
- productVersion
- public java.lang.String checkForUpdate(java.lang.String productEdition, java.lang.String productVersion, java.lang.String licenseServer)
productEdition
- productVersion
- licenseServer
- public java.lang.String checkForUpdateMessage(java.lang.String productEdition, java.lang.String newVersion)
productEdition
- newVersion
- public java.lang.String checkForUpdateMessage(java.lang.String productEdition, java.lang.String newVersion, java.lang.String licenseServer)
productEdition
- newVersion
- licenseServer
-