public class PropertiesFileAuthorizationCallback extends DefaultAuthorizationCallback
Configuration:
<AuthorizationCallback class="rs.baselib.security.PropertiesFileAuthorizationCallback">
<!-- The properties file name. -->
<File>/path/to/file.properties</File>
</AuthorizationCallback>
The properties file itself shall look like this:
login=your-login password=your-password
| Constructor and Description |
|---|
PropertiesFileAuthorizationCallback()
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Configuration config)
Configures the callback.
|
void |
configure(File file)
Configures the callback from the properties file.
|
void |
configure(String file)
Configures the callback from the properties file.
|
getName, getPassword, setName, setPasswordpublic PropertiesFileAuthorizationCallback()
public void configure(Configuration config) throws ConfigurationException
configure in interface IConfigurableconfigure in class DefaultAuthorizationCallbackconfig - - 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.