Custom Login for Java applications

Technote (FAQ)
Problem
The LoginHelper classes forces me to use their prompt or place the login password in clear text in a properties file -- how do I implement my own login dialog for a Java™ client application?
Solution
If you would like to display your own login dialog to capture the user id and password, rather than relying on the supplied LoginHelper class (as described in the security whitepapers) to display a generic dialog, and you do not wish to enter a password in clear text in a properties file such as sas.client.props.

The solution is to:

  1. Set the com.ibm.CORBA.loginSource property in the client properties file to "none" to suppress the generic dialog and to ignore the password and uid properties in the file.
  2. After executing the customer's own logic to capture user id and password, the client app should call the LoginHelper.login() method with those values

For more complete discussions of the custom login process, see the "Programmatic Login" topic in the security whitepapers at:
http://www.ibm.com/software/webservers/appserv/whitepapers.html











    Document Information

    Product categories: Software, Application Servers, Distributed Application & Web Servers, WebSphere Application Server, Security
    Operating system(s): AIX, HPUX, Linux, Solaris, Windows
    Software version: 3.5, 4.0
    Software edition: Standard, Advanced
    Reference #: 1007784
    IBM Group: Software Group
    Modified date: 2004-10-31