|
WEBsina Software | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.websina.license.LicenseManager com.websina.license.LicenseManagerImpl
This class is shipped along with the product to the consumer. It is used to verify the license. The license is a text file also shipped to the comsumer.
Constructor Summary | |
protected |
LicenseManagerImpl()
|
Method Summary | |
int |
daysLeft()
It returns how many days are left for the license. |
java.lang.String |
getFeature(java.lang.String name)
This method is called by the license client to get the feature of the license. |
boolean |
isValid()
It first checks the license itself is not tampered and is valid, and then checks the license is not expired. |
Methods inherited from class com.websina.license.LicenseManager |
getInstance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected LicenseManagerImpl()
Method Detail |
public boolean isValid() throws java.security.GeneralSecurityException
isValid
in class LicenseManager
java.security.GeneralSecurityException
public int daysLeft()
daysLeft
in class LicenseManager
public java.lang.String getFeature(java.lang.String name)
getFeature
in class LicenseManager
|
WEBsina Software | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |