| Back | Next | Contents | Cams Administrator's Guide |
A security domain's login configuration declares the login modules, callback handlers, and login parameters required for user authentication. This document contains reference information for each of the tags that can be used within a Cams login-config.xml file. The following table shows the file structure and provides links to each of the possible elements.
| Tag Name | Instances | Description |
|---|---|---|
|
1
|
declares the login configuration |
|
|
1 ... N
|
a collection of login module entrys |
|
|
1 ... N
|
register a login module class and provides it's configuration options |
|
|
0 ... 1
|
encloses a list of configuration options for a login module |
|
|
|
0 ... N
|
provides an initialization/configuration parameter as a generic name/value pair |
|
1
|
registers a callback handler class used for authentication to the given login-config-entry |
|
|
0 ... N
|
an optional collection of login-parameter elements |
|
|
0 ... N
|
a name/value pair of contextual login information |
The <login-config> element is the top-level element for a security domain's login configuration.
| Item | Description | |||
|---|---|---|---|---|
| Syntax |
<login-config>
<login-config-entry ... >
...
</login-config-entry>
...
</login-config>
|
|||
| Attributes | None | |||
| Data | None | |||
| Parent Elements |
None |
|||
| Child Elements |
|
|||
| Example |
<login-config>
<!-- HTTP login configurations -->
<login-config-entry name="http">
...
|
Declares a single named collection of login-module-entrys that will be used
to authenticate a user. Typically, each login-config-entry is setup to handle
a set of client applications, depending on their authentication needs. Multiple
login-config-entries can be declared to handle the requirements of different
client applications.
The JAAS-compatible LoginModules associated with each login-module-entry will
be executed in the order in which the occur within this element.
| Item | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Syntax |
<login-config-entry name="authentication type"> <login-module-entry ... > |
|||||||||
| Attributes |
|
|||||||||
| Data | None | |||||||||
| Parent Elements |
1. <login-config> |
|||||||||
| Child Elements |
|
|||||||||
| Example |
<!-- HTTP login configurations -->
<login-config-entry name="http">
<!-- Cams native XML user repository -->
<login-module-entry className=\
"com.cafesoft.security.engine.auth.login.module.XmlLoginModule"
flag="REQUIRED">
<options>
<option name="debug" value="false"/>
<option name="serviceId" value="cams-user-repository"/>
</options>
</login-module-entry>
<!-- Register the username password callback handler --> <!-- Specify the default login page --> |
Registers a login module class and provides it's configuration options. One to many login-module-entrys can be declared and will be executed in order in accordance with the flag value specifed.
| Item | Description | ||||||
|---|---|---|---|---|---|---|---|
| Syntax |
<login-module-entry className="fully.qualified.java.Classname" flag="REQUIRED | SUFFICIENT | REQUISITE | OPTIONAL"> <options> |
||||||
| Attributes |
|
||||||
| Data | None | ||||||
| Parent Elements |
1. <login-config-entry> |
||||||
| Child Elements |
|
||||||
| Example |
<!-- Cams native XML user repository -->
<login-module-entry className=\
"com.cafesoft.security.engine.auth.login.module.XmlLoginModule"
flag="REQUIRED">
<options>
<option name="debug" value="false"/>
<option name="serviceId" value="cams-user-repository"/>
</options>
</login-module-entry>
|
A list of configuration options for a login module.
| Item | Description | |||
|---|---|---|---|---|
| Syntax |
<options> <option ... /> ... </options> |
|||
| Attributes | None | |||
| Data | None | |||
| Parent Elements |
1. <login-module-entry> |
|||
| Child Elements |
|
|||
| Example |
<options> <option name="debug" value="false"/> <option name="serviceId" value="cams-user-repository"/> </options> |
A list of configuration options for a login module.
| Item | Description | ||||||
|---|---|---|---|---|---|---|---|
| Syntax |
<option name="service identifier" value="cams-user-repository"/> |
||||||
| Attributes |
|
||||||
| Data | None | ||||||
| Parent Elements |
1. <options> |
||||||
| Child Elements | None | ||||||
| Example |
<options> <option name="debug" value="false"/> <option name="serviceId" value="cams-user-repository"/> </options> |
Registers a Java callback handler class for use with authentication. The callback handler is specific to the authetication client. For example, an HTTP Web interface will use a different callback handler from a Java application to garner username and password information.
| Item | Description | |||
|---|---|---|---|---|
| Syntax |
<callback-handler className="fully.qualified.JavaClassName"/> |
|||
| Attributes |
|
|||
| Data | None | |||
| Parent Elements |
1. <login-config-entry> |
|||
| Child Elements | None | |||
| Example |
<!-- Register the username password callback handler --> |
A collection of login parameter elements. The login parameters can have 0 to many login-parameter elements.
| Item | Description | |||
|---|---|---|---|---|
| Syntax |
<login-parameters> <login-paramter ... /> ... </login-parameters> |
|||
| Attributes | None | |||
| Data | None | |||
| Parent Elements |
1. <login-config-entry> |
|||
| Child Elements |
|
|||
| Example |
<!-- Specify the default login page --> |
A collection of login-parameter elements. The login-parameters can have 0 to many login-parameter elements.
| Item | Description | ||||||
|---|---|---|---|---|---|---|---|
| Syntax |
<login-parameter name="textual name" value="value"/> |
||||||
| Attributes |
|
||||||
| Data | None | ||||||
| Parent Elements |
1. <login-parameters> |
||||||
| Child Elements | None | ||||||
| Example |
<!-- Specify the default login page --> |
© Copyright 1996-2005 Cafésoft LLC. All rights reserved.