/**
* INTERNAL SECURITY:
* Set encryption class that will be loaded by the SecurableObjectHolder
*/
public void setEncryptionClassName(String encryptionClassName) {
SecurableObjectHolder oldHolder = securableObjectHolder;
// re-initialize encryption mechanism
securableObjectHolder = new SecurableObjectHolder();
securableObjectHolder.setEncryptionClassName(encryptionClassName);
// re-encrypt password
if (hasPassword()) {
setPassword(oldHolder.getSecurableObject().decryptPassword(getEncryptedPassword()));
}
}