Class XmlFileAuthorizationCallback

All Implemented Interfaces:
IConfigurable, AuthorizationCallback

public class XmlFileAuthorizationCallback
extends DefaultAuthorizationCallback
Implements authorization information retrieval from a XML file.

Configuration:

 <AuthorizationCallback class="rs.baselib.security.XmlFileAuthorizationCallback">
 
    <!-- The XML file name. -->
    <File>/path/to/file.xml</File>
    
 </AuthorizationCallback>
 

The XML file itself shall look like this:

 <?xml version="1.0" encoding="ISO-8859-1"?>
 <authorization>
        <login>your-login</login>
        <password>your-password</password>
 </authorization>
 
Author:
Ralph Schuster
  • Constructor Summary

    Constructors 
    Constructor Description
    XmlFileAuthorizationCallback()
    Default Constructor.
  • Method Summary

    Modifier and Type Method Description
    void configure​(java.io.File file)
    Configures the callback from the XML file.
    void configure​(java.lang.String file)
    Configures the callback from the XML file.
    void configure​(Configuration config)
    Configures the callback.

    Methods inherited from class rs.baselib.security.AbstractAuthorizationCallback

    getName, getPassword, setName, setPassword

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait