A simple login module that simply associates the principal making the
connection request with the actual EIS connection requirements.
The type of Principal class used is
The initialize method sets up some default connection information for
basic connections. This is useful for container initialization connection
use or running the application in a non-secure manner. This method is
called before the login method.
Method to commit the authentication process (phase 2). If the login
method completed successfully as indicated by loginOk == true, this
method adds the getIdentity() value to the subject getPrincipals() Set.
It also adds the members of each Group returned by getRoleSets()
to the subject getPrincipals() Set.
Overriden by subclasses to return the Groups that correspond to the
to the role sets assigned to the user. Subclasses should create at
least a Group named "Roles" that contains the roles assigned to the user.
A second common group is "CallerPrincipal" that provides the application
identity of the user rather than the security domain identity.