InfoCenter Home > 5.4.1: Client-side loginUse a client-side login when a pure Java client needs to log users into the security domain but does not need to use the authentication data itself. Client-side login works in the following manner:
The client programmer is responsible for writing the code to extract the authentication data and insert it into the CORBA data structures. WebSphere provides a utility class, the LoginHelper class, that can be used to simplify the CORBA programming needed to do this kind of programmatic login. The TestClient application illustrates the use of the LoginHelper class. In order to use the LoginHelper class, the client needs to know the security properties of the ORB, so you must load a properties file containing those values when you start the client program. The file sas.client.props file installed with WebSphere contains valid values. Specify the properties file on the command line as follows: -Dcom.ibm.CORBA.ConfigURL=URL of properties file For example, to load the sas.client.props file and run the TestClient program, issue the following command: java -Dcom.ibm.CORBA.client.ConfigURL=file://<install_root> /properties/sas.client.props TestClient Because the JDK which requires a call to System.exit() any time the AWT is activated, the client programmer needs to call System.exit() at the end to exit the program. |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|