/** * Creates a new instance of <tt>BasicPasswordEncryptor</tt> * */ public BasicPasswordEncryptor() { super(); this.digester = new StandardStringDigester(); this.digester.initialize(); }
/** * Creates a new instance of <tt>BasicPasswordEncryptor</tt> * */ public BasicPasswordEncryptor() { super(); this.digester = new StandardStringDigester(); this.digester.initialize(); }
/** * Creates a new instance of <tt>BasicPasswordEncryptor</tt> * */ public BasicPasswordEncryptor() { super(); this.digester = new StandardStringDigester(); this.digester.initialize(); }
/** * Creates a new instance of <tt>StrongPasswordEncryptor</tt> * */ public StrongPasswordEncryptor() { super(); this.digester = new StandardStringDigester(); this.digester.setAlgorithm("SHA-256"); this.digester.setIterations(100000); this.digester.setSaltSizeBytes(16); this.digester.initialize(); }
/** * Creates a new instance of <tt>StrongPasswordEncryptor</tt> * */ public StrongPasswordEncryptor() { super(); this.digester = new StandardStringDigester(); this.digester.setAlgorithm("SHA-256"); this.digester.setIterations(100000); this.digester.setSaltSizeBytes(16); this.digester.initialize(); }
/** * Creates a new instance of <tt>StrongPasswordEncryptor</tt> * */ public StrongPasswordEncryptor() { super(); this.digester = new StandardStringDigester(); this.digester.setAlgorithm("SHA-256"); this.digester.setIterations(100000); this.digester.setSaltSizeBytes(16); this.digester.initialize(); }
@Override public void initialize() throws InitializationException { this.encryptor = new StrongTextEncryptor(); this.encryptor.setPassword(this.passwordConfig.getSystemPassword()); this.digester = new StandardStringDigester(); this.digester.setAlgorithm("SHA-512"); this.digester.setIterations(100); this.digester.setSaltSizeBytes(16); this.digester.initialize(); }
@Override public void initialize() throws InitializationException { this.encryptor = new StrongTextEncryptor(); this.encryptor.setPassword(this.passwordConfig.getSystemPassword()); this.digester = new StandardStringDigester(); this.digester.setAlgorithm("SHA-512"); this.digester.setIterations(100); this.digester.setSaltSizeBytes(16); this.digester.initialize(); }
StandardStringDigester cloneDigester() { // Check initialization if (!isInitialized()) { initialize(); } final StandardStringDigester cloned = new StandardStringDigester(this.byteDigester.cloneDigester()); cloned.setPrefix(this.prefix); cloned.setSuffix(this.suffix); if (CommonUtils.isNotEmpty(this.stringOutputType)) { cloned.setStringOutputType(this.stringOutputType); } cloned.setUnicodeNormalizationIgnored(this.unicodeNormalizationIgnored); return cloned; }
StandardStringDigester cloneDigester() { // Check initialization if (!isInitialized()) { initialize(); } final StandardStringDigester cloned = new StandardStringDigester(this.byteDigester.cloneDigester()); cloned.setPrefix(this.prefix); cloned.setSuffix(this.suffix); if (CommonUtils.isNotEmpty(this.stringOutputType)) { cloned.setStringOutputType(this.stringOutputType); } cloned.setUnicodeNormalizationIgnored(this.unicodeNormalizationIgnored); return cloned; }
StandardStringDigester cloneDigester() { // Check initialization if (!isInitialized()) { initialize(); } final StandardStringDigester cloned = new StandardStringDigester(this.byteDigester.cloneDigester()); cloned.setPrefix(this.prefix); cloned.setSuffix(this.suffix); if (CommonUtils.isNotEmpty(this.stringOutputType)) { cloned.setStringOutputType(this.stringOutputType); } cloned.setUnicodeNormalizationIgnored(this.unicodeNormalizationIgnored); return cloned; }