|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.system.AoAuthorizeLicense
public class AoAuthorizeLicense
Class performs license authorization.
The AoAuthorizeLicense object can be used by developers to silently 'authorize' the ArcGIS Engine Runtime components on client systems.
If the end user of the standalone custom ArcGIS Engine application has no direct contact with ESRI, the application can either call the SoftwareAuthorization.exe or use the AoAuthorizeLicense object to unlock the functionality of ArcGIS Engine. The advantage of this method is that the software will be authorized silently and does not require the end user to enter registration information.
The developer would follows the steps below to deploy the ArcGIS Engine Runtime to the end user:
The client would install the custom built ArcGIS Engine application. The installation would:
See the topics on licensing and deployment for more information on deploying the ArcGIS Engine Runtime.
Constructor Summary | |
---|---|
AoAuthorizeLicense()
Constructs a AoAuthorizeLicense using ArcGIS Engine. |
|
AoAuthorizeLicense(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. AoAuthorizeLicense theAoAuthorizeLicense = (AoAuthorizeLicense) obj; |
Method Summary | |
---|---|
void |
authorizeASR(String strAsr,
String password)
Authorize new feature(s). |
void |
authorizeASRFromFile(String fileName,
String password)
Authorize new feature(s) from file. |
void |
checkASR(String strAsr,
String password)
Check feature(s). |
void |
checkASRFromFile(String fileName,
String password)
Check feature(s) from file. |
void |
deauthorizeASR(String strAsr,
String password)
Deauthorize feature(s). |
void |
deauthorizeASRFromFile(String fileName,
String password)
Deauthorize feature(s) from file. |
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
String |
getFeaturesAdded()
Retrieves the details of the new authorized features. |
int |
getLastError(String[] lastError)
Retrieves the last error message and code from an attempt to process features. |
int |
hashCode()
the hashcode for this object |
void |
repairASR(String strAsr,
String password)
Repair feature(s). |
void |
repairASRFromFile(String fileName,
String password)
Repair feature(s) from file. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public AoAuthorizeLicense() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic AoAuthorizeLicense(Object obj) throws IOException
AoAuthorizeLicense theAoAuthorizeLicense = (AoAuthorizeLicense) obj;
obj
to AoAuthorizeLicense
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int getLastError(String[] lastError) throws IOException, AutomationException
getLastError
in interface IAuthorizeLicense
lastError
- The lastError (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getFeaturesAdded() throws IOException, AutomationException
Use the FeaturesAdded property after the AddLicenseFromFile and AddLicense methods to return a list of the license features that were successfully added to the keycodes file.
getFeaturesAdded
in interface IAuthorizeLicense
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void authorizeASR(String strAsr, String password) throws IOException, AutomationException
authorizeASR
in interface IAuthorizeLicense
strAsr
- The strAsr (in)password
- The password (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void authorizeASRFromFile(String fileName, String password) throws IOException, AutomationException
authorizeASRFromFile
in interface IAuthorizeLicense
fileName
- The fileName (in)password
- The password (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deauthorizeASR(String strAsr, String password) throws IOException, AutomationException
deauthorizeASR
in interface IAuthorizeLicense
strAsr
- The strAsr (in)password
- The password (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deauthorizeASRFromFile(String fileName, String password) throws IOException, AutomationException
deauthorizeASRFromFile
in interface IAuthorizeLicense
fileName
- The fileName (in)password
- The password (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void repairASR(String strAsr, String password) throws IOException, AutomationException
repairASR
in interface IAuthorizeLicense
strAsr
- The strAsr (in)password
- The password (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void repairASRFromFile(String fileName, String password) throws IOException, AutomationException
repairASRFromFile
in interface IAuthorizeLicense
fileName
- The fileName (in)password
- The password (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void checkASR(String strAsr, String password) throws IOException, AutomationException
checkASR
in interface IAuthorizeLicense
strAsr
- The strAsr (in)password
- The password (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void checkASRFromFile(String fileName, String password) throws IOException, AutomationException
checkASRFromFile
in interface IAuthorizeLicense
fileName
- The fileName (in)password
- The password (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |