|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.webchat.License
public final class License
Holds all the data that makes up a license for the Jive Forums software. The signature property of the license is the digital signature that verifies that the data is valid and unchanged. A LicenseFactory must sign the licensse, and a LicenseManager can be used to verify the signature.
All properties of the license must be specified except for name and company, which don't need to be set, and expiresDate, which can be null if the license never expires.
License files are typically stored as base64 encoded XML files. Therefore, static method to convert a License to and from XML are provided. Any text encoding must be done seperately. You must make sure the licensed is signed before writing it out for use by an end-user or the license will not validate later.
LicenseManager
Nested Class Summary | |
---|---|
static class |
License.LicenseType
A typesafe enum class for license types. |
Method Summary | |
---|---|
static License |
createWorkgroupLicense()
|
boolean |
equals(java.lang.Object o)
|
static License |
fromXML(java.lang.String xml)
Transforms a valid license XML file into a License object. |
java.lang.String |
getCompany()
|
java.util.Date |
getCreationDate()
|
static java.lang.String |
getEvaluationLicense(java.lang.String versionNum)
|
java.util.Date |
getExpiresDate()
|
byte[] |
getFingerprint()
Returns the fingerprint of the license, which is a byte[] that corresponds to all its property values. |
long |
getLicenseID()
|
License.LicenseType |
getLicenseType()
|
java.lang.String |
getName()
|
int |
getNumClusterMembers()
|
int |
getNumCopies()
|
int |
getNumUsers()
|
java.lang.String |
getProduct()
|
java.lang.String |
getSignature()
|
java.lang.String |
getURL()
|
java.lang.String |
getVersion()
|
static void |
main(java.lang.String[] args)
|
void |
setCompany(java.lang.String company)
|
void |
setCreationDate(java.util.Date creationDate)
|
void |
setExpiresDate(java.util.Date expiresDate)
|
void |
setLicenseID(long licenseID)
|
void |
setLicenseType(License.LicenseType licenseType)
|
void |
setName(java.lang.String name)
|
void |
setNumClusterMembers(int numClusterMembers)
|
void |
setNumCopies(int numCopies)
|
void |
setNumUsers(int numUsers)
|
void |
setProduct(java.lang.String product)
|
void |
setSignature(java.lang.String signature)
|
void |
setURL(java.lang.String url)
|
void |
setVersion(java.lang.String version)
|
static java.lang.String |
toXML(License license)
Transforms a License into an XML file. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public long getLicenseID()
public void setLicenseID(long licenseID)
public java.lang.String getProduct()
public void setProduct(java.lang.String product)
public java.lang.String getVersion()
public void setVersion(java.lang.String version)
public License.LicenseType getLicenseType()
public void setLicenseType(License.LicenseType licenseType)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getCompany()
public void setCompany(java.lang.String company)
public int getNumCopies()
public void setNumCopies(int numCopies)
public int getNumClusterMembers()
public void setNumClusterMembers(int numClusterMembers)
public int getNumUsers()
public void setNumUsers(int numUsers)
public java.lang.String getURL()
public void setURL(java.lang.String url)
public java.util.Date getExpiresDate()
public void setExpiresDate(java.util.Date expiresDate)
public java.util.Date getCreationDate()
public void setCreationDate(java.util.Date creationDate)
public java.lang.String getSignature()
public void setSignature(java.lang.String signature)
public byte[] getFingerprint()
public static License createWorkgroupLicense()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public static java.lang.String toXML(License license) throws java.lang.Exception
java.lang.Exception
public static License fromXML(java.lang.String xml) throws org.dom4j.DocumentException, java.text.ParseException
org.dom4j.DocumentException
java.text.ParseException
public static void main(java.lang.String[] args)
public static java.lang.String getEvaluationLicense(java.lang.String versionNum)
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |