Class TextFileAuthorizationCallback

java.lang.Object
rs.baselib.security.AbstractAuthorizationCallback
rs.baselib.security.TextFileAuthorizationCallback
All Implemented Interfaces:
IConfigurable, AuthorizationCallback

public class TextFileAuthorizationCallback
extends AbstractAuthorizationCallback
implements IConfigurable
Implements authorization information retrieval from a plain text file.

Configuration:

 <AuthorizationCallback class="rs.baselib.security.TextFileAuthorizationCallback">
 
    <!-- The text file name. -->
    <File>/path/to/file.txt</File>
    
 </AuthorizationCallback>
 

The text file itself shall look like this:

 your-login:your-password
 
Author:
Ralph Schuster
  • Constructor Summary

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

    Modifier and Type Method Description
    void configure​(java.io.File file)
    Configures the callback from the text file.
    void configure​(java.lang.String file)
    Configures the callback from the text 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