System information
Filename Purpose
config.xul Contains the code for the configuration UI.
esc_browser.xul Contains the code for hosting the external
HTML Smart Card Manager enrollment UI.
Table A.3. Main XUL Files
The primary Smart Card Manager Javascript files are listed in the following table.
Filename Purpose
ESC.js Contains most of the Smart Card Manager
Javascript functionality.
TRAY.js Contains the tray icon functionality.
AdvancedInfo.js Contains the code for the Diagnostics
feature.
GenericAuth.js Contains the code for the authentication
prompt. This prompt is configurable from the
TPS server, which requires dynamic
processing by the Smart Card Manager.
Table A.4. Main Javascript Files
4. Quick Javascript UI Guide
Certificate System 7.1 deployments may be using a customized external UI for key enrollment.
Changes have been made to the names of internal Enterprise Security Client XPCOM objects
in later versions of Certificate System, so changes need to be made to the ESC.js file to adapt
an older UI. The places for these changes are shown in the file section below.
//ESC.js : Core Enterprise Security Client functionality
....
//
// Attach to the Enterprise Security Client XPCOM object on load
//
try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
netkey = Components.classes["@redhat.com/rhCoolKey"].getService();
netkey = netkey.QueryInterface(Components.interfaces.rhICoolKey);
gNotify = new jsNotify;
netkey.rhCoolKeySetNotifyCallback(gNotify);
} catch(e) {
alert("Can't get UniversalXPConnect: " + e);
}
//Sample function to complete Enrollment of a key.
Appendix A. Enterprise Security Client Configuration
52










