Documentation

(jvx:server:security)

Using XmlSecurityManager

This is an old revision of the document!


If you're using a DBSecurityManager, you know that it authenticates users against a database. In some cases, you don't have a database, and you must authenticate with a XML file or a third-party product.

If you want to authenticate with a XML file, it's very easy because JVx has a standard implementation for this case. It's very easy to configure a XmlSecurityManager:

Add the following to your config.xml:

<securitymanager>
  <class>com.sibvisions.rad.server.security.XmlSecurityManager</class>
  <userfile>users.xml</userfile>
</securitymanager>

Your users.xml should be stored in the same directory as your config.xml, or you could define the full qualified path. The user file should contain the list of valid users:

users.xml
<?xml version="1.0" encoding="UTF-8">
 
<users>
  <user name="admin" password="admin"/>
  <user name="user" password="user"/>
</users>

With above configuration, an application user will be authenticated against a XML file.

This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information