public static HashingPasswordService getPasswordService() { DefaultHashService hashService = new DefaultHashService(); hashService.setHashIterations(HASH_ITERATIONS); hashService.setHashAlgorithmName(Sha512Hash.ALGORITHM_NAME); hashService.setGeneratePublicSalt(true); DefaultPasswordService passwordService = new DefaultPasswordService(); passwordService.setHashService(hashService); return passwordService; }
public HashingPasswordService getPasswordService() { return passwordService; }
public void setPasswordService(HashingPasswordService passwordService) { this.passwordService = passwordService; }