NonStop Servlets for JavaServer Pages (NSJSP) 6.0 System Administrator's Guide
Configuring NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) 6.0 System Administrator’s Guide—544548-004
3-36
JAASRealm
</security-role>
:
:
5. Configure the JAASRealm module in the server.xml file or in your Context
configuration file located in the directory NSJSP_HOME/conf/NSJSP/<host-
name>/. Example 3-16 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/server.xml file or in the <Context> element in the context
configuration file, as in Example 3-9 on page 3-23. These 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. For more information, see Digested
Passwords on page 3-39. 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.
useContextClassLoader
Instructs the JAASRealm to use the context’s loader to load the user-specified
LoginModule and associated classes. The default value is true.
Example 3-16. Realm element in the iTP WebServer 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”
/>










