public class XmlAuthenticator extends XmlAuthenticator
<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>
XmlAuthenticator.User
_passwordDigest, _passwordDigestAlgorithm, _passwordDigestRealm, NULL_USER
Constructor and Description |
---|
XmlAuthenticator() |
addUser, createUser, getDefaultGroup, getPasswordUser, getPath, getUserMap, init, reload, setPath
addRoleMapping, authenticate, authenticate, authenticate, authenticate, authenticate, digest, getAlgorithm, getDigest, getDigestSecret, getDigestSecret, getLogoutOnSessionTimeout, getPasswordDigest, getPasswordDigest, getPasswordDigestAlgorithm, getPasswordDigestRealm, getPasswordUser, getSingleSignon, isUserInRole, logout, setLogoutOnSessionTimeout, setPasswordDigest, setPasswordDigestAlgorithm, setPasswordDigestRealm, setSerializationHandle, stringToDigest, toString, writeReplace