java.lang.Object
com.sourcetap.license.License
- public class License
- extends java.lang.Object
License Information. Basic information (company Name, email Address, and expiration date) and a license key
is encapsulated within.
- Version:
- $Revision$
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
companyName
private java.lang.String companyName
email
private java.lang.String email
expirationDate
private java.util.Date expirationDate
License
public License(java.lang.String licenseKey)
throws LicenseException
- constructor to create a license from the specified license key
License
public License(java.lang.String companyName,
java.lang.String email,
java.lang.String expirationDate)
throws LicenseException
- constructor to create a license from the specified license data.
License
public License(java.lang.String companyName,
java.lang.String email,
java.util.Date expirationDate)
- constructor to create a license from the specified license data.
getCompanyName
public java.lang.String getCompanyName()
setCompanyName
public void setCompanyName(java.lang.String companyName)
setLicenseKey
public void setLicenseKey(java.lang.String licenseKey)
throws LicenseException
getLicenseKey
public java.lang.String getLicenseKey()
getEmailAddress
public java.lang.String getEmailAddress()
setEmailAddress
public void setEmailAddress(java.lang.String email)
getExpirationDate
public java.util.Date getExpirationDate()
getExpirationDateString
public java.lang.String getExpirationDateString()
setExpirationDate
public void setExpirationDate(java.lang.String expirationDateStr)
throws LicenseException
- parses the string and converts it to a date
setExpirationDate
public void setExpirationDate(java.util.Date expirationDate)
isExpired
public boolean isExpired()
- determine if the license is expired.