Map<String, String> prop = new HashMap<String, String>();
prop.put("key", "blahblah");
codec.init(prop);
String mask1 = (String)codec.encode(password1);
String mask2 = (String)codec.encode(password2);
String mask3 = (String)codec.encode(password3);
String config = passwordCodecXml.replace("PASSWORD_TOKEN1", mask1);
config = config.replace("PASSWORD_TOKEN2", mask2);
config = config.replace("PASSWORD_TOKEN3", mask3);