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-23
Configuring Realms
MemoryRealm
Accesses authentication information stored in an in-memory object collection,
which is initialized from an XML document (for example,
NSJSP_HOME/conf/nsjsp-users.xml).
JDBCRealm
Obtains authentication information stored in a relational database, accessed
through a Java Database Connectivity (JDBC) driver.
JNDIRealm
Obtains authentication information stored in a Lightweight Directory Access
Protocol (LDAP) based directory server, accessed through a Java Naming and
Directory Interface (JNDI) provider.
JAASRealm
Obtains authentication information through the Java Authentication and
Authorization Service (JAAS) framework. The JAAS package is integrated in the
J2SE version 1.5.
To configure a realm, add an XML element to your context.xml configuration file as
shown in Example 3-9 or in the directory NSJSP_HOME/webapps/<application
name>/META-INF/.
The <Realm> element can be nested inside one of the three elements listed below.
The location where the <Realm> element is nested has a direct impact on the scope of
that realm. The <Realm> element can be nested in:
an <Engine> element – The JAASRealm is shared across all web applications on
all virtual hosts unless it is overridden by a <Realm> element nested inside a
subordinate <Host> or <Context> element.
a <Host> element – The JAASRealm is shared across all web applications for this
virtual host unless it is overridden by a <Realm> element nested inside a
subordinate <Context> element. The <Context> element is defined in XML
configuration files located in the directory NSJSP_HOME/conf/NSJSP/<host-
name>/.
a <Context> element – The JAASRealm is used by the web application running
under <Context>. The <Context> element defined in the XML configuration files
is located in the directory NSJSP_HOME/conf/NSJSP/<host-name>/.
Example 3-9. Adding an XML element to configure a Realm
<Realm className="... class name for this implementation"
... other attributes for this implementation .../>










