FileOutputStream fos = new FileOutputStream(context
.getRealPath("/WEB-INF/classes") + File.separatorChar + "generated-" + KEYSTORE);
keyStore.load(null, PASSWORD.toCharArray());
keyStore.store(fos, PASSWORD.toCharArray());
fos.close();
fac.setDigitalSignatureParser(new DigitalSignatureProcessor(keyStore,
digSigSchema, REJECTINVALID, REJECTUNTRUSTED));
logger.info(localizedMessages.getString("WidgetHotDeploy.4"));
} else {
keyStore.load(stream, PASSWORD.toCharArray());
stream.close();
fac.setDigitalSignatureParser(new DigitalSignatureProcessor(keyStore,
digSigSchema, REJECTINVALID, REJECTUNTRUSTED));
}
}
return fac;
}