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(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
Configure using the given configuration- Specified by:
configurein interfaceIConfigurable- Parameters:
cfg- configuration- Throws:
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
-