|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vs.ezlicrun.EzLicenseInfo
com.vs.ezlicgen.EzLicenseFullInfo
public class EzLicenseFullInfo
The class manages the state of the information pertaining to
a license key and provides methods to generate and parse a
license key, recharge and deactivate the EasyLicenser
installation, as well as those pertaining to the internal
functioning of the license manager itself.
To generate a key, use the appropriate static method for
the license model, with the appropriate parameters:
generateSingleUserKey
generateServerKey
generateFloatingKey
generateKey()
to generate the key,
providing the username and optionally an application password to use
for encoding the custom key and cookie and for validating
the application identity.
parseLicenseKey()
providing the license
key to be parsed.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.vs.ezlicrun.EzLicenseInfo |
---|
com.vs.ezlicrun.EzLicenseInfo.Hfile, com.vs.ezlicrun.EzLicenseInfo.Util |
Field Summary |
---|
Fields inherited from class com.vs.ezlicrun.EzLicenseInfo |
---|
CHKID, CKSM, CNC, COOKY, CPU, createTs, CST, CUST, ENF, EXP, EXPTS, EZLIC_DEFAULT_TIME_TOLERANCE_HRS, EZLIC_KEY_VSN, EZLIC_KEY_VSN_CURR, EZLIC_KEY_VSN_CURR_S, EZLIC_KEY_VSN_NEXT, 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, EZLM_MAJOR_VERSION_NUMBER, EZLM_MINOR_VERSION_NUMBER, FLT, HST, MHZ, NET, NMU, NUMPIECES, OPT, PROD, PWD, QTA, TS, USR, VSN, WHEN, WHO |
Constructor Summary | |
---|---|
EzLicenseFullInfo()
|
Method Summary | |
---|---|
static java.lang.String |
deactivateEzlmInstallation(java.lang.String username)
deactivateEzlmInstallation: deactivate the EasyLicenser installation and return an encrypted confirmation token. |
static EzLicenseFullInfo |
generateChainedKey(java.lang.String sourceLicenseKey,
java.lang.String ISVuserName,
java.lang.String productName,
java.lang.String appPassword,
long userLimitIncrement,
boolean isNewExpirationDate,
java.util.Date newExpirationDate,
boolean isNewQuotaLimit,
long newQuotaLimit,
java.lang.String[] newOptions)
(Backward compatible signature) Factory method to generate an incremental floating license key that is chained to an existing unexpired license key, such that the new key can only be used to replace the old key, and the license units that are consumed only correspond to the specified incremental user limit. |
static EzLicenseFullInfo |
generateChainedKey(java.lang.String sourceLicenseKey,
java.lang.String ISVuserName,
java.lang.String productName,
java.lang.String appPassword,
long userLimitIncrement,
boolean isNewExpirationDate,
java.util.Date newExpirationDate,
boolean isNewQuotaLimit,
long newQuotaLimit,
java.lang.String[] newOptions,
boolean doUpgrade)
(Full signature version, enables generation of an upgrade-revision key) Factory method to generate an incremental floating license key that is chained to an existing unexpired license key, such that the new key can only be used to replace the old key, and the license units that are consumed only correspond to the specified incremental user limit. |
static EzLicenseFullInfo |
generateFloatingKey(java.util.Date now,
java.lang.String ISVusername,
java.lang.String customerName,
java.lang.String serviceName,
java.lang.String productName,
java.lang.String appPassword,
java.lang.String userHostName,
long userLimit,
java.util.Date expirationDate,
long quotaLimit,
java.lang.String[] optionsVector,
boolean enforce)
Generate floating license key for Orion license server, for applications that are protected with the Orion (not EasyLicenser) runtime library (backward compatible signature, for Orion server versions 2.0.10 or older). |
static EzLicenseFullInfo |
generateFloatingKey(java.util.Date now,
java.lang.String ISVusername,
java.lang.String customerName,
java.lang.String serviceName,
java.lang.String productName,
java.lang.String appPassword,
java.lang.String userHostName,
long userLimit,
java.util.Date expirationDate,
long quotaLimit,
java.lang.String[] optionsVector,
boolean enforce,
boolean xsecure)
Generate floating license key for Orion license server, for applications that are protected with the Orion (not EasyLicenser) runtime library - extended version. |
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 appPassword)
Generate license key based on class context that was set up through its mutators, encoding the custom key and cookie with the private key derived from the specified secret application password if not null. |
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.lang.String |
generateKey(java.lang.String userName,
java.lang.String vendorPasswd,
java.lang.String vendorCookie,
boolean createConfig,
java.lang.String appPassword)
NOTE: THIS METHOD IS INTENDED FOR INTERNAL USE BY THE EASYLICENSER VENDOR CODE. |
static EzLicenseFullInfo |
generateServerKey(java.util.Date now,
java.lang.String ISVusername,
java.lang.String customerName,
java.lang.String productName,
java.lang.String appPassword,
java.lang.String userHostName,
long serverLimit,
int serverLicenseType,
java.util.Date expirationDate,
long quotaLimit,
java.lang.String customKey,
java.lang.String customCookie,
java.lang.String[] optionsVector,
boolean enforce)
Generate server license key for a server application protected with EasyLicenser runtime library (backward compatible signature). |
static EzLicenseFullInfo |
generateServerKey(java.util.Date now,
java.lang.String ISVusername,
java.lang.String customerName,
java.lang.String productName,
java.lang.String appPassword,
java.lang.String userHostName,
long serverLimit,
int serverLicenseType,
java.util.Date expirationDate,
long quotaLimit,
java.lang.String customKey,
java.lang.String customCookie,
java.lang.String[] optionsVector,
boolean enforce,
boolean xsecure)
Generate server license key for a server application protected with EasyLicenser runtime library - extended. |
static EzLicenseFullInfo |
generateSingleUserKey(java.util.Date now,
java.lang.String ISVusername,
java.lang.String customerName,
java.lang.String productName,
java.lang.String appPassword,
java.lang.String userHostName,
boolean hostOnly,
java.util.Date expirationDate,
long quotaLimit,
java.lang.String customKey,
java.lang.String customCookie,
java.lang.String[] optionsVector,
boolean enforce)
Generate single-user license key (backward compatible signature). |
static EzLicenseFullInfo |
generateSingleUserKey(java.util.Date now,
java.lang.String ISVusername,
java.lang.String customerName,
java.lang.String productName,
java.lang.String appPassword,
java.lang.String userHostName,
boolean hostOnly,
java.util.Date expirationDate,
long quotaLimit,
java.lang.String customKey,
java.lang.String customCookie,
java.lang.String[] optionsVector,
boolean enforce,
boolean xsecure)
Generate single-user license key - extended. |
java.util.Date |
getCreationDate()
getCreationDate: returns license key creation date |
long |
getCreationTimestamp()
getCreationTimestamp: returns license key creation timestamp expressed as # of milliseconds past beginning-1970. |
java.lang.String |
getCreatorUsername()
getCreatorUsername: returns license key creator user name |
java.lang.String |
getEndCustomerCompanyName()
getEndCustomerCompanyName: returns license key end customer company name |
static int |
getEzlmKeyVersion()
|
static boolean |
getFloatingEnabled()
|
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 EasyLicenser 1.1 style license key, setting up the license parameters in the class context. |
void |
parseLicenseKey(java.lang.String licenseKey,
java.lang.String username,
java.lang.String product,
java.lang.String appPassword)
Parse the given license key, setting up the license parameters in the class context. |
static void |
rechargeEzlmKey(java.lang.String newLicenseKey,
java.lang.String username)
rechargeEzlmKey: recharge EasyLicenser license key based on an existing ISV license key, setting the license info context to the new values and returning the resultant new license key that reflects the updated quota and expiration date. |
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 # of milliseconds past beginning-1970. |
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, checkLicenseKey, checkLicenseKey, checkLicenseKey, checkLicenseKey, checkLicenseKeySecure, checkLicenseKeySecure, checkLicenseKeySecure, checkLicenseKeySecure, checkLicenseKeySecure, checkLongValue, checkMultiUserLicenseKeyBasic, checkMultiUserLicenseKeyBasic, checkMultiUserLicenseKeyBasic, checkSingleUserLicenseKeyBasic, checkSingleUserLicenseKeyBasic, checkSingleUserLicenseKeyBasic, cleanupKeyCookie, cleanupKeyCookie, compareOsd, createKeyCookieSeed, createKeyCookieSeed, createKeyCookieSeed, getAppPwd, getChainedKeyId, getCustomCookie, getCustomKey, getEnforce, getExpirationDate, getExpirationTs, getEzlmVersionInfo, getKeyCookieAppState, getKeyCookieQuotaToDate, getKeyCookieTs, getKeyVersion, getLicenseKey, getLicenseModeBitmap, getLicenseModelCode, getLicenseTypeCode, getOptions, getQuotaValue, getTimeToleranceHrs, getUsageValue, getUserHostNetName, getWarningsBitmap, lookupKey, makeChecksum, makeDate, setChainedKeyId, setCustomCookie, setCustomKey, setEnforce, setExpirationDate, setKeyVersion, setLicenseKey, setLicenseModeBitmap, setLicenseModelCode, setLicenseTypeCode, setOptions, setQuotaValue, setTimeToleranceHrs, 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
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 static EzLicenseFullInfo generateSingleUserKey(java.util.Date now, java.lang.String ISVusername, java.lang.String customerName, java.lang.String productName, java.lang.String appPassword, java.lang.String userHostName, boolean hostOnly, java.util.Date expirationDate, long quotaLimit, java.lang.String customKey, java.lang.String customCookie, java.lang.String[] optionsVector, boolean enforce) throws com.vs.ezlicrun.EzLicExceptionBase
now
- the current date/time. If specified (eg. for regression testing
of a back office key generation system), this is the creation timestamp
that is recorded in the key. Otherwise, the current date/time is used.ISVusername
- ISV user namecustomerName
- the name of the end customer that is recorded in the key
for auditing purposesproductName
- the product name, which must match the product name that is
provided by the application at run time.appPassword
- application password seed for the product. The encryption is with a private key
derived from this password. The application password is also embedded in
the application code, which passes it into the license key
check API call when running at the end customer site.userHostName
- the user / host name for the license key. If enforce is true,
this is the node locking information, and may be a combination of OS username and OS
hostname, or a machine fingerprint obtained from the end customer by having
the run the ezlmfputil
hostOnly
- whether the user/host name only has a hostname component and
no username component. This governs whether the license type is "user"
or "machine".expirationDate
- the expiration date for the license, if it is time limited. Specify
null if the license is not time limited.quotaLimit
- the quota limit for a metered license. Specify -1 if the license is not
quota limited.customKey
- custom key value for embedding into the custom key attribute of
the license key, or null if no custom keycustomCookie
- custom cookie value for embedding into the custom cookie
attribute of the license key, or null if no custom cookieoptionsVector
- an array of "option=value" pairs representing product
options.enforce
- whether to enforce built-in node locking
com.vs.ezlicrun.EzLicExceptionBase
- if the key context wasn't set up properly, or the
key becomes too big.public static EzLicenseFullInfo generateSingleUserKey(java.util.Date now, java.lang.String ISVusername, java.lang.String customerName, java.lang.String productName, java.lang.String appPassword, java.lang.String userHostName, boolean hostOnly, java.util.Date expirationDate, long quotaLimit, java.lang.String customKey, java.lang.String customCookie, java.lang.String[] optionsVector, boolean enforce, boolean xsecure) throws com.vs.ezlicrun.EzLicExceptionBase
now
- the current date/time. If specified (eg. for regression testing
of a back office key generation system), this is the creation timestamp
that is recorded in the key. Otherwise, the current date/time is used.ISVusername
- ISV user namecustomerName
- the name of the end customer that is recorded in the key
for auditing purposesproductName
- the product name, which must match the product name that is
provided by the application at run time.appPassword
- application password seed for the product. The encryption is with a private key
derived from this password. The application password is also embedded in
the application code, which passes it into the license key
check API call when running at the end customer site.userHostName
- the user / host name for the license key. If enforce is true,
this is the node locking information, and may be a combination of OS username and OS
hostname, or a machine fingerprint obtained from the end customer by having
the run the ezlmfputil
hostOnly
- whether the user/host name only has a hostname component and
no username component. This governs whether the license type is "user"
or "machine".expirationDate
- the expiration date for the license, if it is time limited. Specify
null if the license is not time limited.quotaLimit
- the quota limit for a metered license. Specify -1 if the license is not
quota limited.customKey
- custom key value for embedding into the custom key attribute of
the license key, or null if no custom keycustomCookie
- custom cookie value for embedding into the custom cookie
attribute of the license key, or null if no custom cookieoptionsVector
- an array of "option=value" pairs representing product
options.enforce
- whether to enforce built-in node lockingxsecure
- whether to generate an extra-secure key
(which requires an EasyLicenser runtime library at version
2.5.11 or higher).
com.vs.ezlicrun.EzLicExceptionBase
- if the key context wasn't set up properly, or the
key becomes too big.public static EzLicenseFullInfo generateServerKey(java.util.Date now, java.lang.String ISVusername, java.lang.String customerName, java.lang.String productName, java.lang.String appPassword, java.lang.String userHostName, long serverLimit, int serverLicenseType, java.util.Date expirationDate, long quotaLimit, java.lang.String customKey, java.lang.String customCookie, java.lang.String[] optionsVector, boolean enforce) throws com.vs.ezlicrun.EzLicExceptionBase
now
- the current date/time. If specified (eg. for regression testing
of a back office key generation system), this is the creation timestamp
that is recorded in the key. Otherwise, the current date/time is used.ISVusername
- ISV user namecustomerName
- the name of the end customer that is recorded in the key
for auditing purposesproductName
- the product name, which must match the product name that is
provided by the application at run time.appPassword
- application password seed for the product. The encryption is with a private key
derived from this password. The application password is also embedded in
the application code, which passes it into the license key
check API call when running at the end customer site.userHostName
- the user / host name for the license key. If enforce is true,
this is the node locking information, and may be a combination of OS username and OS
hostname, or a machine fingerprint obtained from the end customer by having
the run the ezlmfputil
serverLimit
- server limit as a function of license type: concurrent
user limit / named-role limit / CPU count limit / CPU MHZ limit.serverLicenseType
- license type code - whether limited by concurrent
users, named roles, CPU count or CPU MHZexpirationDate
- the expiration date for the license, if it is time limited. Specify
null if the license is not time limited.quotaLimit
- the quota limit for a metered license. Specify -1 if the license is not
quota limited.customKey
- custom key value for embedding into the custom key attribute of
the license key, or null if no custom keycustomCookie
- custom cookie value for embedding into the custom cookie
attribute of the license key, or null if no custom cookieoptionsVector
- an array of "option=value" pairs representing product
options.enforce
- whether to enforce built-in node locking
com.vs.ezlicrun.EzLicExceptionBase
- if the key context wasn't set up properly, or the
key becomes too big.public static EzLicenseFullInfo generateServerKey(java.util.Date now, java.lang.String ISVusername, java.lang.String customerName, java.lang.String productName, java.lang.String appPassword, java.lang.String userHostName, long serverLimit, int serverLicenseType, java.util.Date expirationDate, long quotaLimit, java.lang.String customKey, java.lang.String customCookie, java.lang.String[] optionsVector, boolean enforce, boolean xsecure) throws com.vs.ezlicrun.EzLicExceptionBase
now
- the current date/time. If specified (eg. for regression testing
of a back office key generation system), this is the creation timestamp
that is recorded in the key. Otherwise, the current date/time is used.ISVusername
- ISV user namecustomerName
- the name of the end customer that is recorded in the key
for auditing purposesproductName
- the product name, which must match the product name that is
provided by the application at run time.appPassword
- application password seed for the product. The encryption is with a private key
derived from this password. The application password is also embedded in
the application code, which passes it into the license key
check API call when running at the end customer site.userHostName
- the user / host name for the license key. If enforce is true,
this is the node locking information, and may be a combination of OS username and OS
hostname, or a machine fingerprint obtained from the end customer by having
the run the ezlmfputil
serverLimit
- server limit as a function of license type: concurrent
user limit / named-role limit / CPU count limit / CPU MHZ limit.serverLicenseType
- license type code - whether limited by concurrent
users, named roles, CPU count or CPU MHZexpirationDate
- the expiration date for the license, if it is time limited. Specify
null if the license is not time limited.quotaLimit
- the quota limit for a metered license. Specify -1 if the license is not
quota limited.customKey
- custom key value for embedding into the custom key attribute of
the license key, or null if no custom keycustomCookie
- custom cookie value for embedding into the custom cookie
attribute of the license key, or null if no custom cookieoptionsVector
- an array of "option=value" pairs representing product
options.enforce
- whether to enforce built-in node lockingxsecure
- whether to generate an extra-secure key
(which requires an EasyLicenser runtime library at version
2.5.11 or higher).
com.vs.ezlicrun.EzLicExceptionBase
- if the key context wasn't set up properly, or the
key becomes too big.public static EzLicenseFullInfo generateFloatingKey(java.util.Date now, java.lang.String ISVusername, java.lang.String customerName, java.lang.String serviceName, java.lang.String productName, java.lang.String appPassword, java.lang.String userHostName, long userLimit, java.util.Date expirationDate, long quotaLimit, java.lang.String[] optionsVector, boolean enforce) throws com.vs.ezlicrun.EzLicExceptionBase
now
- the current date/time. If specified (eg. for regression testing
of a back office key generation system), this is the creation timestamp
that is recorded in the key. Otherwise, the current date/time is used.ISVusername
- ISV user namecustomerName
- the name of the end customer that is recorded in the key
for auditing purposesserviceName
- the name of the Orion service, default if null.productName
- the product name, which must match the product name that is
provided by the application at run time.appPassword
- application password seed for the product. The encryption is with a private key
derived from this password. The application password is also embedded in
the application code, which passes it into the license key
check API call when running at the end customer site.userHostName
- the user / host name for the license key. If enforce is true,
this is the node locking information, and may be a combination of OS username and OS
hostname, or a machine fingerprint obtained from the end customer by having
the run the ezlmfputil
userLimit
- Orion floating user hard limit.expirationDate
- the expiration date for the license, if it is time limited. Specify
null if the license is not time limited.quotaLimit
- the quota limit for a metered license. Specify -1 if the license is not
quota limited.optionsVector
- an array of "option=value" pairs representing product
options, including Orion system options.enforce
- whether to enforce built-in node locking
com.vs.ezlicrun.EzLicExceptionBase
- if the key context wasn't set up properly, or the
key becomes too big.public static EzLicenseFullInfo generateFloatingKey(java.util.Date now, java.lang.String ISVusername, java.lang.String customerName, java.lang.String serviceName, java.lang.String productName, java.lang.String appPassword, java.lang.String userHostName, long userLimit, java.util.Date expirationDate, long quotaLimit, java.lang.String[] optionsVector, boolean enforce, boolean xsecure) throws com.vs.ezlicrun.EzLicExceptionBase
now
- the current date/time. If specified (eg. for regression testing
of a back office key generation system), this is the creation timestamp
that is recorded in the key. Otherwise, the current date/time is used.ISVusername
- ISV user namecustomerName
- the name of the end customer that is recorded in the key
for auditing purposesserviceName
- the name of the Orion service, default if null.productName
- the product name, which must match the product name that is
provided by the application at run time.appPassword
- application password seed for the product. The encryption is with a private key
derived from this password. The application password is also embedded in
the application code, which passes it into the license key
check API call when running at the end customer site.userHostName
- the user / host name for the license key. If enforce is true,
this is the node locking information, and may be a combination of OS username and OS
hostname, or a machine fingerprint obtained from the end customer by having
the run the ezlmfputil
userLimit
- Orion floating user hard limit.expirationDate
- the expiration date for the license, if it is time limited. Specify
null if the license is not time limited.quotaLimit
- the quota limit for a metered license. Specify -1 if the license is not
quota limited.optionsVector
- an array of "option=value" pairs representing product
options, including Orion system options.enforce
- whether to enforce built-in node lockingxsecure
- whether to generate an extra-secure key (requires
Orion server version 2.0.20 or higher.
com.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) throws com.vs.ezlicrun.EzLicExceptionBase
userName
- ISV user name
com.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 appPassword) throws com.vs.ezlicrun.EzLicExceptionBase
userName
- ISV user nameappPassword
- application password seed. The encryption is with a private key
derived from this password. The application password is also embedded in
the application code, which passes it into the license key
check API call when running at the end customer site.
com.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 java.lang.String generateKey(java.lang.String userName, java.lang.String vendorPasswd, java.lang.String vendorCookie, boolean createConfig, java.lang.String appPassword) 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.appPassword
- an application password known only to the ISV and also supplied
at run time to the license key check API call.
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 generateChainedKey(java.lang.String sourceLicenseKey, java.lang.String ISVuserName, java.lang.String productName, java.lang.String appPassword, long userLimitIncrement, boolean isNewExpirationDate, java.util.Date newExpirationDate, boolean isNewQuotaLimit, long newQuotaLimit, java.lang.String[] newOptions) throws com.vs.ezlicrun.EzLicExceptionBase
sourceLicenseKey
- license key from which to generate a chained keyISVuserName
- ISV user nameproductName
- product nameappPassword
- old key's application passworduserLimitIncrement
- incremental user limit - 0 implies no change in the user limitisNewExpirationDate
- expiration date being passed in is a new onenewExpirationDate
- new expiration date, don't-care if isNewExpirationDate is falseisNewQuotaLimit
- quota limit being passed in is a new onenewQuotaLimit
- new quota limit, don't-care if isNewQuotaLimit is falsenewOptions
- new option vector - null signifies no change in the product options
com.vs.ezlicrun.EzLicExceptionBase
- if the key is not chainable or there is a user authorization
problem or there is an out-of-quota condition.public static EzLicenseFullInfo generateChainedKey(java.lang.String sourceLicenseKey, java.lang.String ISVuserName, java.lang.String productName, java.lang.String appPassword, long userLimitIncrement, boolean isNewExpirationDate, java.util.Date newExpirationDate, boolean isNewQuotaLimit, long newQuotaLimit, java.lang.String[] newOptions, boolean doUpgrade) throws com.vs.ezlicrun.EzLicExceptionBase
sourceLicenseKey
- license key from which to generate a chained keyISVuserName
- ISV user nameproductName
- product nameappPassword
- old key's application passworduserLimitIncrement
- incremental user limit - 0 implies no change in the user limitisNewExpirationDate
- expiration date being passed in is a new onenewExpirationDate
- new expiration date, don't-care if isNewExpirationDate is falseisNewQuotaLimit
- quota limit being passed in is a new onenewQuotaLimit
- new quota limit, don't-care if isNewQuotaLimit is falsenewOptions
- new option vector - null signifies no change in the product optionsdoUpgrade
- whether to generate an upgraded key at the 2.5.11+ level. Note that
the Orion server needs to be at revision 2.0.11 or later in order to
accept this key. Set this to false if your Orion server level is at level 2.0.10 or earlier.
com.vs.ezlicrun.EzLicExceptionBase
- if the key is not chainable or there is a user authorization
problem or there is an out-of-quota condition.public static void rechargeEzlmKey(java.lang.String newLicenseKey, java.lang.String username) throws com.vs.ezlicrun.EzLicExceptionBase
newLicenseKey
- new incremental license keyusername
- EasyLicenser user name associated with the new key
com.vs.ezlicrun.EzLicExceptionBase
public static java.lang.String deactivateEzlmInstallation(java.lang.String username) throws com.vs.ezlicrun.EzLicExceptionBase
username
- EasyLicenser user name for this installation - must match.
com.vs.ezlicrun.EzLicExceptionBase
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 key
com.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 key
com.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 or if the
post-1.1 key is incompatible with this 1.1 APIpublic void parseLicenseKey(java.lang.String licenseKey, java.lang.String username, java.lang.String product, java.lang.String appPassword) throws com.vs.ezlicrun.EzLicExceptionBase
licenseKey
- license key.username
- the user who is supposed to be the creator.product
- product name for which the EasyLicenser 2.0+ key is
supposed to be.appPassword
- public key corresponding to application password that was
supplied at the time of generating the key.
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 policy
com.vs.ezlicrun.EzLicExceptionBase
- if this license info is not validpublic static int getEzlmKeyVersion() throws com.vs.ezlicrun.EzLicExceptionBase
com.vs.ezlicrun.EzLicExceptionBase
public static boolean getFloatingEnabled() throws com.vs.ezlicrun.EzLicExceptionBase
com.vs.ezlicrun.EzLicExceptionBase
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |