* Use explicit crypt provider to prevent crypt warning output, see
* SecuritySettings#getCryptFactory()
*/
IProvider<ICrypt> cryptProvider = new IProvider<ICrypt>()
{
private ICryptFactory cryptFactory = new CachingSunJceCryptFactory(
SecuritySettings.DEFAULT_ENCRYPTION_KEY);
@Override
public ICrypt get()
{
return cryptFactory.newCrypt();
}
};
mapper = new CryptoMapper(application.getRootRequestMapper(), cryptProvider);
}