/** * @return The crypt engine to be used */ protected ICrypt getCrypt() { if (crypt == null) { CachingSunJceCryptFactory cryptFactory = new CachingSunJceCryptFactory(encryptionKey); crypt = cryptFactory.newCrypt(); } return crypt; }
/** * @see org.apache.wicket.settings.ISecuritySettings#getCryptFactory() */ public synchronized ICryptFactory getCryptFactory() { if (cryptFactory == null) { cryptFactory = new CachingSunJceCryptFactory(ISecuritySettings.DEFAULT_ENCRYPTION_KEY); } return cryptFactory; }
/** * @return The crypt engine to be used */ protected ICrypt getCrypt() { if (crypt == null) { CachingSunJceCryptFactory cryptFactory = new CachingSunJceCryptFactory(encryptionKey); crypt = cryptFactory.newCrypt(); } return crypt; }