biz.c24.api
Class License
java.lang.Object
biz.c24.api.License
public final class License
- extends Object
C24 License reader.
Main class that is responsible for a C24 license reading and checking
- Version:
- $Revision: 18168 $ $Date: 2011-12-20 09:05:43 -0500 (Tue, 20 Dec 2011) $
Constructor Summary |
License(boolean openEdition)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
C24_TECHNOLOGIES
public static final String C24_TECHNOLOGIES
- See Also:
- Constant Field Values
DATE_FORMAT
public static final SimpleDateFormat DATE_FORMAT
STATUS_GREYED
public static final int STATUS_GREYED
- See Also:
- Constant Field Values
STATUS_ENABLED
public static final int STATUS_ENABLED
- See Also:
- Constant Field Values
STATUS_DISABLED
public static final int STATUS_DISABLED
- See Also:
- Constant Field Values
FREE_SWIFTMT
public static final String FREE_SWIFTMT
- See Also:
- Constant Field Values
License
public License(boolean openEdition)
load
public static License load()
throws LicenseException
- Throws:
LicenseException
load
public static License load(File file)
throws LicenseException
- Throws:
LicenseException
load
public static License load(InputStream stream)
throws LicenseException
- Throws:
LicenseException
daysUntilExpiry
public int daysUntilExpiry(int max)
isC24Licensee
public boolean isC24Licensee()
getLicensee
public String getLicensee()
getLicenseeDescription
public String getLicenseeDescription()
getExpiryDate
public Date getExpiryDate()
getExpiryDateStr
public String getExpiryDateStr()
isEvaluation
public boolean isEvaluation()
isReferenceImplementation
public boolean isReferenceImplementation()
isRuntime
public boolean isRuntime()
isDesigntime
public boolean isDesigntime()
getPurchaseKey
public String getPurchaseKey()
- Deprecated. Removed as of v3.9.0
getChecksum
public String getChecksum()
getProductLicenseCount
public int getProductLicenseCount()
getProductLicense
public License.ProductLicense getProductLicense(int index)
getProductLicense
public License.ProductLicense getProductLicense(ProductType type)
checkProductLicenseVersion
public void checkProductLicenseVersion(ProductType type,
VersionNumber vn)
throws LicenseException
- Throws:
LicenseException
getProductComponentLicense
public License.ProductLicense.ComponentLicense getProductComponentLicense(ProductType prodType,
ComponentType compType)
getFile
public File getFile()
isProductComponentLicenseEnabled
public boolean isProductComponentLicenseEnabled(ProductType prodType,
ComponentType compType)
isProductComponentLicenseDisabled
public boolean isProductComponentLicenseDisabled(ProductType prodType,
ComponentType compType)
isProductComponentLicenseGreyed
public boolean isProductComponentLicenseGreyed(ProductType prodType,
ComponentType compType)
C24 Technologies © 2002-2012: All Rights Reserved.