public class WCPasswordEncrypter
extends java.lang.Object
Constructor and Description |
---|
WCPasswordEncrypter()
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
encryptPassword(java.lang.String password,
java.lang.String salt)
Returns the WC encrypted password with the given clear text password and salt.
|
void |
initializeKeyRegistry(java.lang.String customKeyConfigFilename,
java.lang.String instanceXMLFilename)
Initializes the key registry by providing one of two parameters.
|
public void initializeKeyRegistry(java.lang.String customKeyConfigFilename, java.lang.String instanceXMLFilename) throws java.lang.Exception
customKeyConfigFilename
- The full path to the custom key configuration fileinstanceXMLFilename
- The full path to the instance configuration xml filejava.lang.Exception
- Thrown if there is any error during key registry initialization.public java.lang.String encryptPassword(java.lang.String password, java.lang.String salt) throws ECApplicationException
initializeKeyRegistry(String instanceXMLFilename, String customKeyConfigFilename) method.
password
- The clear text password.salt
- The salt.ECApplicationException
- when the key registry is not initialized.