public class TextFileAuthorizationCallback extends AbstractAuthorizationCallback implements IConfigurable
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
| Constructor and Description |
|---|
TextFileAuthorizationCallback()
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Configuration config)
Configures the callback.
|
void |
configure(File file)
Configures the callback from the text file.
|
void |
configure(String file)
Configures the callback from the text file.
|
getName, getPassword, setName, setPasswordpublic TextFileAuthorizationCallback()
public void configure(Configuration config) throws ConfigurationException
configure in interface IConfigurableconfig - - configuration objectConfigurationException - - when configuration failspublic void configure(String file) throws ConfigurationException
file - filenameConfigurationExceptionpublic void configure(File file) throws ConfigurationException
file - fileConfigurationExceptionCopyright © 2014. All rights reserved.