Secure Global Desktop Administration Guide > Applets > login method
int login(String user, String password)
The login
method allows users to log in to
Secure Global Desktop without having to use the login applet.
It can be used with the following Secure Global Desktop
applets:
This method requires the username and password of the user to log in.
The login
method returns 0
if the user is
successfully logged in; otherwise it returns the relevant error code.
Note For all applets, except the Framework applet, we recommend that you only use this method if you have exhausted all other means for logging a user in and that you also use the scriptStart method.
<SCRIPT Language="JavaScript"> function login(username, password) { status = document.applets[0].login(username, password); if (status != 0) alert ( "Failed to log in: error " + status ); } </SCRIPT>
Defines a function that logs a user in, or displays a dialog containing the error code.
Note that the applet must be present in the same web page
as the login
method.
Copyright © 1997-2005 Sun Microsystems, Inc. All rights reserved.