encoder = (PasswordOptionEncoder) passwordEncoderClass.newInstance();
}
else {
getLog().error("Unknown password encoder key " + passwordEncoderKey);
getLog().error("Falling back to Base64 encoder for encoding new passwords");
encoder = new Base64();
}
}
catch (Exception e1) {
getLog().error("Exception creating password encoder " + passwordEncoderKey, e1);
getLog().error("Falling back to Base64 encoder for encoding new passwords");
encoder = new Base64();
}
_moduleRegistry.getContextObjects().put(PasswordEncodingType.class, encoder);