NonStop Servlets for JavaServer Pages (5.0) System Administrator's Guide

Configuring NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide525644-002
3-42
JAASRealm
<security-role>
<description>The System User ROLE</description>
<role-name>SYSSW</role-name>
<role-name>SUPER</role-name>
</security-role>
:
:
5. Configure the JAASRealm module in the iTP_server.xml file or in your Context
configuration file located in the $NSJSP_HOME/conf/NSJSP/<host-name>/
directory. Example 3-28 shows an example of using the NSJSP provided
NonStopLoginModule.
.
JAASRealm Element Attributes
To configure JAASRealm, create a <Realm> element and nest it in your
$NSJSP_HOME/conf/iTP_server.xml file or in the <Context> element in the
context configuration file, as in Example 3-20. The following attributes are supported
for JAASRealm.
className
The value is org.apache.catalina.realm.JAASRealm.
appName
The name of the application as configured in the login configuration file.
digest
The digest algorithm used to store passwords in non-plain text formats. Valid
values are those accepted for the algorithm name by the
java.security.MessageDigest class. See Digested Passwords on page 3-45
for more information. If not specified, passwords are stored in clear text.
userClassNames
A comma-separated list of user Principal class names.
roleClassNames
A comma-separated list of role Principal class names.
Example 3-28. Realm Element in the iTP Web Server Configuration File
<Realm className="org.apache.catalina.realm.JAASRealm"
appName="NonStopUserDB"
userClassNames="com.tandem.servlet.jaas.NonStopUserPrincipal"
roleClassNames="com.tandem.servlet.jaas.NonStopRolePrincipal"
useContextClassLoader=”true”
debug="0"/>