User guide
Chapter 7: Developing Applications
7-6
When an Application Runs as a Stand-alone Application
When an application is run as a stand-alone application (server application), develop the application as
a service so that it can be run without login for security reasons.
When an application is run as a stand-alone application (server application), develop the application so
that it can be run as a daemon process without login for security reasons.
Processing Flow
Table 7-4 provides processing flow information.
Table 7-4 Process Flow Information
Processing Flow Required? Explanation
1. Converting
CallbackHandler
to instance
Required Set the login information to be used for JAAS
authentication. Pass the user ID/password
received from the client to a constructor argument
for converting CallbackHandler to instance.
2. Converting
LoginContext to
instance
Required Specify the LoginModule and CallbackHandler to
be used for JAAS authentication.
3. Calling
LoginContext
login method
Required
Execute JAAS authentication processing.
Execute authentication processing for the
authentication server.
4. Obtaining user
information
Required - to obtain
authentication information
for an authenticated user
Obtain user information (Credential object and
Principal object).
5. Executing
authorization
Optional Code access permission can be controlled using
the authenticated user information.
Environment Setup
Table 7-5 lists the environment setup items required for execution.
Table 7-5 Environment Setup Items for Execution
Setup Items Required? Explanation
Setting
environment
variables
Required Set the environment variables required for
operation.
Obtaining service
ID file
Required - when an
authentication server is
specified as the
authentication destination
without using a business
server configuration.
Use a repository server command to obtain the file.