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.