Package rs.baselib.security
Class DefaultPasswordCallback
java.lang.Object
rs.baselib.security.DefaultPasswordCallback
- All Implemented Interfaces:
IConfigurable,IPasswordCallback
public class DefaultPasswordCallback extends java.lang.Object implements IPasswordCallback, IConfigurable
Returns the password given in configuration.
- Author:
- ralph
-
Constructor Summary
Constructors Constructor Description DefaultPasswordCallback()Constructor. -
Method Summary
Modifier and Type Method Description voidconfigure(org.apache.commons.configuration.Configuration cfg)Configure using the given configurationchar[]getPassword()Delivers the password.byte[]getSalt()Delivers the salt for encryption.
-
Constructor Details
-
DefaultPasswordCallback
public DefaultPasswordCallback()Constructor.
-
-
Method Details
-
configure
public void configure(org.apache.commons.configuration.Configuration cfg) throws org.apache.commons.configuration.ConfigurationExceptionConfigure using the given configuration- Specified by:
configurein interfaceIConfigurable- Parameters:
cfg- configuration- Throws:
org.apache.commons.configuration.ConfigurationException- if a problem occurs
-
getPassword
public char[] getPassword()Delivers the password.- Specified by:
getPasswordin interfaceIPasswordCallback- Returns:
- the password
-
getSalt
public byte[] getSalt()Delivers the salt for encryption.- Specified by:
getSaltin interfaceIPasswordCallback- Returns:
- the salt
-