|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.vs.ezlicrun.EzLicenseInfo | +--com.vs.ezlicgen.EzLicenseFullInfo
The class manages the state of the information pertaining to
a license key and provides methods to generate and parse a
license key, as well as those pertaining to the internal
functioning of the license
manager itself.
The class is used for key generation as follows:
1. Instantiate this class through its default constructor.
2. Invoke its mutators (and those of its superclass) to
provide the information necessary to generate the key.
3. Invoke generateKey()
to generate the key.
The class is used for examining an existing license key
for display purposes as follows:
1. Instantiate this class through its default constructor.
2. Invoke parseLicenseKey()
providing the license
key to be parsed.
3. Invoke its accessors to obtain the decomposed parts of
the key.
Fields inherited from class com.vs.ezlicrun.EzLicenseInfo |
CNC, COOKY, CPU, CST, CUST, ENF, EXP, EZLIC_MODE_CUSTOM_COOKIE, EZLIC_MODE_CUSTOM_KEY, EZLIC_MODE_METERED, EZLIC_MODE_OPTIONS, EZLIC_MODE_TIME, EZLIC_MODEL_SERVER, EZLIC_MODEL_USER, EZLIC_TYPE_SVR_CONC, EZLIC_TYPE_SVR_CPU, EZLIC_TYPE_SVR_MHZ, EZLIC_TYPE_SVR_NMU, EZLIC_TYPE_U_FLOAT, EZLIC_TYPE_U_NODE, EZLIC_TYPE_U_USER, FLT, HST, MHZ, NET, NMU, NUMPIECES, OPT, PROD, QTA, TS, USR, WHEN, WHO |
Constructor Summary | |
EzLicenseFullInfo()
|
Method Summary | |
java.lang.String |
generateKey(java.lang.String userName)
Generate license key based on class context that was set up through its mutators. |
java.lang.String |
generateKey(java.lang.String userName,
java.lang.String vendorPasswd,
java.lang.String vendorCookie,
boolean createConfig)
NOTE: THIS METHOD IS INTENDED FOR INTERNAL USE BY THE EASYLICENSER VENDOR CODE. |
java.util.Date |
getCreationDate()
getCreationDate: returns license key creation date |
long |
getCreationTimestamp()
getCreationTimestamp: returns license key creation timestamp expressed as no. |
java.lang.String |
getCreatorUsername()
getCreatorUsername: returns license key creator user name |
java.lang.String |
getEndCustomerCompanyName()
getEndCustomerCompanyName: returns license key end customer company name |
java.lang.String |
getId()
getId: returns a unique identifier that serves as a surrogate for the unique license key (which is very long). |
long |
getLuConsumption(EzLicenseVendorLuPolicy luPolicy)
Obtain the license-unit consumption for this license key based on the specified vendor license unit policy. |
java.lang.String |
getProductName()
getProductName: returns license key ISV product name |
void |
parseLicenseKey(java.lang.String licenseKey,
java.lang.String username)
Parse the given license key, setting up the license parameters in the class context. |
static EzLicenseFullInfo |
regenLicenseKey(java.lang.String oldLicenseKey,
long balanceQuota,
java.lang.String newLicenseKey)
NOTE: INTERNAL METHOD NOT INTENDED FOR USE BY ISV. |
static EzLicenseFullInfo |
regenLicenseKey(java.lang.String vendorPasswd,
java.lang.String oldLicenseKey,
long balanceQuota,
java.lang.String newLicenseKey)
NOTE: INTERNAL METHOD NOT INTENDED FOR USE BY ISV. |
void |
setCreationDate(java.util.Date creationDate)
setCreationDate: sets license creation date |
void |
setCreationTimestamp(long creationTimestamp)
setCreationTimestamp: sets license creation timestamp to no. |
void |
setCreatorUsername(java.lang.String creatorUsername)
setCreatorUsername: sets license key creator user name |
void |
setEndCustomerCompanyName(java.lang.String endCustomerCompanyName)
setEndCustomerCompanyName: sets license key end-customer company name |
void |
setProductName(java.lang.String productName)
setProductName: sets ISV product name |
Methods inherited from class com.vs.ezlicrun.EzLicenseInfo |
checkDebug, checkLicenseKey, checkLicenseKeySecure, checkLongValue, checkMultiUserLicenseKeyBasic, checkSingleUserLicenseKeyBasic, checkTsString, createKeyCookieSeed, getCustomCookie, getCustomKey, getEnforce, getExpirationDate, getLicenseKey, getLicenseModeBitmap, getLicenseModelCode, getLicenseTypeCode, getOptions, getQuotaValue, getUsageValue, getUserHostNetName, getWarningsBitmap, lookupKey, makeDate, makeTsString, setCustomCookie, setCustomKey, setEnforce, setExpirationDate, setLicenseKey, setLicenseModeBitmap, setLicenseModelCode, setLicenseTypeCode, setOptions, setQuotaValue, setUsageValue, setUserHostNetName, setWarningsBitmap |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EzLicenseFullInfo()
Method Detail |
public java.lang.String getId() throws com.vs.ezlicrun.EzLicExceptionBase
public java.lang.String getCreatorUsername()
public java.lang.String getEndCustomerCompanyName()
public java.lang.String getProductName()
public java.util.Date getCreationDate()
public long getCreationTimestamp()
public void setCreatorUsername(java.lang.String creatorUsername)
creatorUsername:
- the license key creator user namepublic void setEndCustomerCompanyName(java.lang.String endCustomerCompanyName)
endCustomerCompanyName:
- name of end-customer company the license keypublic void setProductName(java.lang.String productName)
productName:
- name of ISV productpublic void setCreationDate(java.util.Date creationDate)
creationDate:
- license key creation datepublic void setCreationTimestamp(long creationTimestamp)
creationTimestamp:
- license key creation timestamppublic java.lang.String generateKey(java.lang.String userName) throws com.vs.ezlicrun.EzLicExceptionBase
userName:
- ISV user namecom.vs.ezlicrun.EzLicExceptionBase
- if the key context wasn't set up properly, or the
key becomes too big.public java.lang.String generateKey(java.lang.String userName, java.lang.String vendorPasswd, java.lang.String vendorCookie, boolean createConfig) throws com.vs.ezlicrun.EzLicExceptionBase
userName:
- ISV user namevendorPasswd:
- special vendor password for vendor-related key generation.vendorCookie:
- vendor cookie to set for custom cookie.createConfig:
- whether to create and populate an ISV ezconfig, if this is
a vendor key generation.com.vs.ezlicrun.EzLicExceptionBase
- if the key context wasn't set up properly, or the
key becomes too big, or the (ISV) user doesn't have the license
to generate keys in this mode.public static EzLicenseFullInfo regenLicenseKey(java.lang.String oldLicenseKey, long balanceQuota, java.lang.String newLicenseKey) throws com.vs.ezlicrun.EzLicExceptionBase
oldLicenseKey:
- old license keybalanceQuota:
- balance quotanewLicenseKey:
- new incremental license keycom.vs.ezlicrun.EzLicExceptionBase
- public static EzLicenseFullInfo regenLicenseKey(java.lang.String vendorPasswd, java.lang.String oldLicenseKey, long balanceQuota, java.lang.String newLicenseKey) throws com.vs.ezlicrun.EzLicExceptionBase
vendorPasswd:
- password for vendor key regenerationoldLicenseKey:
- old license keynewLicenseKey:
- new incremental license keycom.vs.ezlicrun.EzLicExceptionBase
- public void parseLicenseKey(java.lang.String licenseKey, java.lang.String username) throws com.vs.ezlicrun.EzLicExceptionBase
licenseKey:
- license key.username:
- the user who is supposed to be the creator.com.vs.ezlicrun.EzLicExceptionBase
- if a problem was encountered in the key syntax.public long getLuConsumption(EzLicenseVendorLuPolicy luPolicy) throws com.vs.ezlicrun.EzLicExceptionBase
luPolicy:
- Vendor license unit policycom.vs.ezlicrun.EzLicExceptionBase
- if this license info is not valid
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |