|
WEBsina Software | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.websina.license.License
The class read and write to the license file. it should be used by both the SignManager and the LicenseManager so that they are signing and verifying the same data.
Field Summary | |
static java.lang.String |
NEVER
|
Method Summary | |
void |
create()
This is called by LicenseTool to create the license. |
java.lang.String |
format()
The license data that is used to to create the license file and well as used for validate the license along with the signature. |
java.lang.String |
getExpiration()
This method is called by the license client (or the LicenseManager) to validate the license. |
java.lang.String |
getFeature(java.lang.String name)
This method is called by the license client (or the LicenseManager) to validate the license. |
java.lang.String |
getSignature()
This method is called by the license client (or the LicenseManager) to validate the license. |
static License |
loadLicense()
The method is used by the LicenseManager to load an existing License. |
static License |
newLicense()
This method is used by the LicenseTool to create a License. |
void |
setExpiration(java.lang.String date)
This method is called by the LicenseTool before creating the license. |
void |
setFeature(java.lang.String name,
java.lang.String value)
This method is called by the LicenseTool to set the features for the license. |
void |
setSignature(java.lang.String signature)
This method is called by the LicenseTool before creating the license. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String NEVER
Method Detail |
public static License newLicense()
public static License loadLicense() throws LicenseNotFoundException
LicenseNotFoundException
public void create() throws java.lang.Exception
java.lang.Exception
public java.lang.String format()
public java.lang.String getFeature(java.lang.String name)
name
- a feature in the license.
public void setFeature(java.lang.String name, java.lang.String value)
name
- a feature of the license.value
- the value of the feature.public java.lang.String getExpiration()
public void setExpiration(java.lang.String date)
date
- the license expiration date.public java.lang.String getSignature()
public void setSignature(java.lang.String signature)
signature
- the license signature.
|
WEBsina Software | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |