|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.security.AbstractAuthenticator
com.caucho.security.XmlAuthenticator
com.caucho.server.security.XmlAuthenticator
public class XmlAuthenticator
The XML authenticator reads a static file for authentication.
<authenticator url="xml:path=WEB-INF/users.xml"/>
The format of the static file is as follows:
<users>
<user name="h.potter" password="quidditch" roles="user,captain"/>
...
</users>
The authenticator can also be configured in the resin-web.xml:
<authenticator url="xml:password-digest=none">
<init>
<user name="Harry Potter" password="quidditch" roles="user,captain"/>
</init>
</authenticator>
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.caucho.security.XmlAuthenticator |
|---|
XmlAuthenticator.User |
| Field Summary |
|---|
| Fields inherited from class com.caucho.security.AbstractAuthenticator |
|---|
_passwordDigest, _passwordDigestAlgorithm, _passwordDigestRealm |
| Constructor Summary | |
|---|---|
XmlAuthenticator()
|
|
| Method Summary |
|---|
| Methods inherited from class com.caucho.security.XmlAuthenticator |
|---|
addUser, createUser, getDefaultGroup, getPasswordUser, getPath, getUserMap, init, reload, setPath |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XmlAuthenticator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||