Connecting to a Java application using authentication

Authentication provides a secure way of accessing your Java application through the Health Center agent.

Using authentication: agent setup

For the Health Center agent, authentication is configured using files on disk. The agent requires an authentication file to configure the user name and password, and an authorization file to configure access for that user name. The authentication file contains the user name and password, separated by a space. The authorization file contains the user name and the word readwrite, separated by a space. Here is a sample authentication file for authentication.txt:
myuser mypassw0rd
The associated authorization.txt file is similar to:
myuser readwrite
Note: Use only alphabetic characters for the user name and password. Do not use spaces or symbols.
You can choose the files to use by configuring the following command-line options:
  • com.ibm.java.diagnostics.healthcenter.agent.authentication.file
  • com.ibm.java.diagnostics.healthcenter.agent.authorization.file
For example:
java -agentlib:healthcenter -Xtrace:output=perfmon.out \
-Dcom.ibm.java.diagnostics.healthcenter.agent.authentication.file=/home/user/authentication.txt \
-Dcom.ibm.java.diagnostics.healthcenter.agent.authorization.file=/home/user/authorization.txt \
MyClassName
Ensure that you configure the permissions on the authentication file so that only authorized users can see the password information it holds.

Using authentication: client setup

To use authentication with the Health Center client, tick the authentication option on the wizard page and enter the user name and password stored in the authentication.txt file.



© Copyright IBM Corporation 2005, 2010. All Rights Reserved.
© Copyright Sun Microsystems, Inc. 1997, 2007, 901 San Antonio Rd., Palo Alto, CA 94303 USA. All rights reserved.
US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
This information center is powered by Eclipse technology. (http://www.eclipse.org/)