|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.interfaceware.chameleon.License
This class can be used by customers to automate the registration of Chameleon run-time instances. This class allows you to programmatically register Chameleon on a user's machine without any user input.
Beginning in version 4.5, this class allows you to register Chameleon without the machine being registered having a direct connection to the Internet. This is useful for companies that want to automate the registration code setup for Chameleon. To make it easy for companies to incorporate Chameleon into their existing licensing process, this class allows you to:
(1) Generate a unique Machine ID for the host machine.
(2) Request a non-expiring license for the Machine ID using the user name and password for the host members account. The automated registration process involves communication with an iNTERFACEWARE server via HTTP. This can be accomplished either from a centrally located computer, or from the actual host machine.
(3) Apply the registration code to the host machine.
This process makes it easy for companies to get the machine IDs centrally using their own licensing, meaning they can add the extra Chameleon information to their own license file.
Please see http://www.interfaceware.com/manual/api_registration.html for details.
| Constructor Summary | |
License()
|
|
License(long Handle)
|
|
| Method Summary | |
java.lang.String |
fetchRegistrationCode(java.lang.String MachineId,
java.lang.String EmailAddress,
java.lang.String Password,
java.lang.String Description)
If successful, this method will return the non-expiring runtime registration code for the unique machine ID from iNTERFACEWARE's server. |
java.lang.String |
fetchTrialRegistrationCode(java.util.Date ExpiryDate,
java.lang.String MachineId,
java.lang.String EmailAddress,
java.lang.String Password,
java.lang.String Description)
If successful, this method will return the expiring trial registration code for the unique machine ID from iNTERFACEWARE's server. |
protected void |
finalize()
|
boolean |
getIsLicensed()
This is a boolean function, which returns true if the machine has a valid Chameleon license, and false otherwise. |
java.lang.String |
getMachineId()
This method returns the unique machine ID of the machine to register. |
java.lang.String |
getProxy()
The IP address or hostname for the Web proxy to use. |
void |
registerHost(java.lang.String RegistrationCode)
This is a method that is used to register the machine using the given registration code. |
void |
registerTrialHost(java.lang.String RegistrationCode,
java.util.Date ExpiryDate)
This is a method that is used to register the machine using the given expiring trial registration code and expiry date. |
void |
release()
|
void |
setProxy(java.lang.String Value)
Set method for proxy. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public License()
throws ChameleonException
public License(long Handle)
throws ChameleonException
| Method Detail |
public void release()
throws ChameleonException
ChameleonException
protected void finalize()
throws ChameleonException
ChameleonException
public boolean getIsLicensed()
throws ChameleonException
This is a boolean function, which returns true if the machine has a valid Chameleon license, and false otherwise. This method checks the license status of the target machine, but does not send a request to the iNTERFACEWARE server.
ChameleonException
public java.lang.String getProxy()
throws ChameleonException
The IP address or hostname for the Web proxy to use. A Web proxy is required when the local machine does not have direct access to the Internet and needs to forward the registration requests through another server. A Web proxy server is a server that handles the HTTP requests of its clients by forwarding its requests to other servers (e.g. iNTERFACEWARE server). A client will connect to the Web proxy server to request a file. The proxy server then connects to the specified server and requests the file on behalf of the client. If your network requires your Internet connection to be set up via a Web proxy, you must specify the proxy your network uses to forward HTTP requests to other servers. By default, no proxy will be used. After setting a Web proxy, to unset it simply set this property to an empty string.
See also the setProxy method.
ChameleonException
public void setProxy(java.lang.String Value)
throws ChameleonException
Set method for proxy.
See getProxy.
Value - Value to set proxy to.
ChameleonException
public java.lang.String getMachineId()
throws ChameleonException
This method returns the unique machine ID of the machine to register.
ChameleonException
public java.lang.String fetchRegistrationCode(java.lang.String MachineId,
java.lang.String EmailAddress,
java.lang.String Password,
java.lang.String Description)
throws ChameleonException
If successful, this method will return the non-expiring runtime registration code for the unique machine ID from iNTERFACEWARE's server. This process involves an HTTP request to the iNTERFACEWARE server on port 80, therefore, there must be an available Internet connection. The HTTP request consists of your email address and password (the same one used to log into your member's account) and a machineId uniquely identifying the machine to register. The Description of the registration code will be used to identify it in order to determine the nature of the license.
MachineId - The Machine ID of the machine to register.EmailAddress - Email address used to login to iNTERFACEWARE's members
site.Password - Password used to login to iNTERFACEWARE's members site.Description - A description of the registration code.
ChameleonException
public void registerHost(java.lang.String RegistrationCode)
throws ChameleonException
This is a method that is used to register the machine using the given registration code. This method checks if the registration key is valid and throws an exception if it is invalid; it does not send a request to the iNTERFACEWARE server. Also note that the method only supports non-expiring keys.
RegistrationCode - The registration code.
ChameleonException
public java.lang.String fetchTrialRegistrationCode(java.util.Date ExpiryDate,
java.lang.String MachineId,
java.lang.String EmailAddress,
java.lang.String Password,
java.lang.String Description)
throws ChameleonException
If successful, this method will return the expiring trial registration code for the unique machine ID from iNTERFACEWARE's server. This process involves an HTTP request to the iNTERFACEWARE server on port 80, therefore, there must be an available Internet connection. The HTTP request consists of your email address and password (the same one used to log into your member's account) and a machineId uniquely identifying the machine to register. The Description of the registration code will be used to identify it in order to determine the nature of the license.
ExpiryDate - Returns the expiry date of the registration code.MachineId - The Machine ID of the machine to register.EmailAddress - Email address used to login to iNTERFACEWARE's members
site.Password - Password used to login to iNTERFACEWARE's members site.Description - A description of the registration code.
ChameleonException
public void registerTrialHost(java.lang.String RegistrationCode,
java.util.Date ExpiryDate)
throws ChameleonException
This is a method that is used to register the machine using the given expiring trial registration code and expiry date. This method checks if the registration key is valid and throws an exception if it is invalid; it does not send a request to the iNTERFACEWARE server.
RegistrationCode - The registration code.ExpiryDate - The expiry date of the registration code.
ChameleonException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||