List of usage examples for org.springframework.security.crypto.bcrypt BCrypt MIN_LOG_ROUNDS
int MIN_LOG_ROUNDS
To view the source code for org.springframework.security.crypto.bcrypt BCrypt MIN_LOG_ROUNDS.
Click Source Link
From source file:org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder.java
/** * @param version the version of bcrypt, can be 2a,2b,2y * @param strength the log rounds to use, between 4 and 31 * @param random the secure random instance to use *//*from w ww . j a v a2 s . c om*/ public BCryptPasswordEncoder(BCryptVersion version, int strength, SecureRandom random) { if (strength != -1 && (strength < BCrypt.MIN_LOG_ROUNDS || strength > BCrypt.MAX_LOG_ROUNDS)) { throw new IllegalArgumentException("Bad strength"); } this.version = version; this.strength = strength; this.random = random; }