/** * <p> * Sets the size (in bytes) of the salt to be used. * </p> * <p> * Default is 8. * </p> * * @param saltSizeBytes the salt size in bytes */ public void setSaltSizeBytes(final int saltSizeBytes) { this.digester.setSaltSizeBytes(saltSizeBytes); }
/** * <p> * Sets the size (in bytes) of the salt to be used. * </p> * <p> * Default is 8. * </p> * * @param saltSizeBytes the salt size in bytes */ public void setSaltSizeBytes(final int saltSizeBytes) { this.digester.setSaltSizeBytes(saltSizeBytes); }
/** * <p> * Sets the size (in bytes) of the salt to be used. * </p> * <p> * Default is 8. * </p> * * @param saltSizeBytes the salt size in bytes */ public void setSaltSizeBytes(final int saltSizeBytes) { this.digester.setSaltSizeBytes(saltSizeBytes); }
/** * <p> * Sets the size (in bytes) of the salt to be used. * </p> * <p> * Default is 8. * </p> * * @param saltSizeBytes the salt size in bytes */ public void setSaltSizeBytes(final int saltSizeBytes) { this.digester.setSaltSizeBytes(saltSizeBytes); }
/** * <p> * Sets the size (in bytes) of the salt to be used. * </p> * <p> * Default is 8. * </p> * * @param saltSizeBytes the salt size in bytes */ public void setSaltSizeBytes(final int saltSizeBytes) { this.digester.setSaltSizeBytes(saltSizeBytes); }
/** * <p> * Sets the size (in bytes) of the salt to be used. * </p> * <p> * Default is 8. * </p> * * @param saltSizeBytes the salt size in bytes */ public void setSaltSizeBytes(final int saltSizeBytes) { this.digester.setSaltSizeBytes(saltSizeBytes); }
/** * 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>RFC2307MD5PasswordEncryptor</tt> * */ public RFC2307MD5PasswordEncryptor() { super(); this.digester = new StandardStringDigester(); this.digester.setAlgorithm("MD5"); this.digester.setIterations(1); this.digester.setSaltSizeBytes(0); this.digester.setPrefix("{MD5}"); }
/** * 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>RFC2307SHAPasswordEncryptor</tt> * */ public RFC2307SHAPasswordEncryptor() { super(); this.digester = new StandardStringDigester(); this.digester.setAlgorithm("SHA-1"); this.digester.setIterations(1); this.digester.setSaltSizeBytes(0); this.digester.setPrefix("{SHA}"); }
/** * 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>RFC2307SHAPasswordEncryptor</tt> * */ public RFC2307SHAPasswordEncryptor() { super(); this.digester = new StandardStringDigester(); this.digester.setAlgorithm("SHA-1"); this.digester.setIterations(1); this.digester.setSaltSizeBytes(0); this.digester.setPrefix("{SHA}"); }
/** * Creates a new instance of <tt>RFC2307MD5PasswordEncryptor</tt> * */ public RFC2307MD5PasswordEncryptor() { super(); this.digester = new StandardStringDigester(); this.digester.setAlgorithm("MD5"); this.digester.setIterations(1); this.digester.setSaltSizeBytes(0); this.digester.setPrefix("{MD5}"); }
/** * Creates a new instance of <tt>RFC2307MD5PasswordEncryptor</tt> * */ public RFC2307MD5PasswordEncryptor() { super(); this.digester = new StandardStringDigester(); this.digester.setAlgorithm("MD5"); this.digester.setIterations(1); this.digester.setSaltSizeBytes(0); this.digester.setPrefix("{MD5}"); }
/** * Creates a new instance of <tt>RFC2307SHAPasswordEncryptor</tt> * */ public RFC2307SHAPasswordEncryptor() { super(); this.digester = new StandardStringDigester(); this.digester.setAlgorithm("SHA-1"); this.digester.setIterations(1); this.digester.setSaltSizeBytes(0); this.digester.setPrefix("{SHA}"); }
@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(); }
/** * Creates a new instance of <tt>RFC2307OpenLDAPSSHAPasswordEncryptor</tt> * */ public RFC2307SSHAPasswordEncryptor() { super(); this.digester = new StandardStringDigester(); this.digester.setAlgorithm("SHA-1"); this.digester.setIterations(1); this.digester.setSaltSizeBytes(8); this.digester.setPrefix("{SSHA}"); this.digester.setInvertPositionOfSaltInMessageBeforeDigesting(true); this.digester.setInvertPositionOfPlainSaltInEncryptionResults(true); this.digester.setUseLenientSaltSizeCheck(true); }
/** * Creates a new instance of <tt>RFC2307OpenLDAPSSHAPasswordEncryptor</tt> * */ public RFC2307SMD5PasswordEncryptor() { super(); this.digester = new StandardStringDigester(); this.digester.setAlgorithm("MD5"); this.digester.setIterations(1); this.digester.setSaltSizeBytes(8); this.digester.setPrefix("{SMD5}"); this.digester.setInvertPositionOfSaltInMessageBeforeDigesting(true); this.digester.setInvertPositionOfPlainSaltInEncryptionResults(true); this.digester.setUseLenientSaltSizeCheck(true); }
/** * Creates a new instance of <tt>RFC2307OpenLDAPSSHAPasswordEncryptor</tt> * */ public RFC2307SMD5PasswordEncryptor() { super(); this.digester = new StandardStringDigester(); this.digester.setAlgorithm("MD5"); this.digester.setIterations(1); this.digester.setSaltSizeBytes(8); this.digester.setPrefix("{SMD5}"); this.digester.setInvertPositionOfSaltInMessageBeforeDigesting(true); this.digester.setInvertPositionOfPlainSaltInEncryptionResults(true); this.digester.setUseLenientSaltSizeCheck(true); }