XmlAuthenticator
From Resin 3.0
This article requires cleanup and may refer to a legacy version of Resin.
Please visit http://www.caucho.com/documentation/ for the most up-to-date documentation. |
The XmlAuthenticator is a simple authentication scheme where an XML file or a configuration file specifies the users directly. XmlAuthenticator is useful when you have a small number of known users.
<init> directives
directive | description | |
---|---|---|
logout-on-session-timeout | If true, principals should be logged out when a session times out | true |
password-digest | Password digest type of form: MD5-base64 | MD5-base64 |
password-digest-algorithm | Sets the password digest algorithm | MD5 |
password-digest-realm | Sets the realm to use for the digest | resin |
path | Path to an XML file containing the configuration | |
principal-cache-size | Size of the principal cache | 4096 |
user | Inline user configuration in the form "name:password:roles" |
Example
resin-web.xml
<web-app xmlns="http://caucho.com/ns/resin"> <authenticator> <type>com.caucho.server.security.XmlAuthenticator</type> <init> <password-digest>none</password-digest> <user>Harry Potter:quidditch:user</user> </init> </authenticator> ... </web-app>