@Singleton public class XmlAuthenticator extends AbstractAuthenticator
 <resin:XmlAuthenticator 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:
 
 <resin:XmlAuthenticator password-digest="none">
   <user name="Harry Potter" password="quidditch" roles="user,captain"/>
 </resin:XmlAuthenticator>
 
| Modifier and Type | Class and Description | 
|---|---|
| class  | XmlAuthenticator.User | 
_passwordDigest, _passwordDigestAlgorithm, _passwordDigestRealm, NULL_USER| Constructor and Description | 
|---|
| XmlAuthenticator() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addUser(XmlAuthenticator.User user)Adds a user from the configuration. | 
| XmlAuthenticator.User | createUser()Adds a user from the configuration. | 
| protected java.lang.String | getDefaultGroup()Returns the default group for a user | 
| protected PasswordUser | getPasswordUser(java.lang.String userName)Returns the PasswordUser | 
| Path | getPath()Gets the path to the XML file. | 
| protected java.util.Hashtable<java.lang.String,PasswordUser> | getUserMap()Returns the user map | 
| void | init()Initialize the XML authenticator. | 
| void | reload()Reload the authenticator. | 
| void | setPath(Path path)Sets the path to the XML file. | 
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, writeReplacepublic void setPath(Path path)
public Path getPath()
protected java.lang.String getDefaultGroup()
public XmlAuthenticator.User createUser()
<init user='Harry Potter:quidditch:user,webdav'/>
public void addUser(XmlAuthenticator.User user)
<init user='Harry Potter:quidditch:user,webdav'/>
protected java.util.Hashtable<java.lang.String,PasswordUser> getUserMap()
@PostConstruct public void init() throws ServletException
init in class AbstractAuthenticatorServletExceptionprotected PasswordUser getPasswordUser(java.lang.String userName)
getPasswordUser in class AbstractAuthenticatoruserName - the string user namepublic void reload()