
public class ReentrantBCryptPasswordEncoder extends Object implements org.springframework.security.crypto.password.PasswordEncoder
| Constructor and Description | 
|---|
| ReentrantBCryptPasswordEncoder() | 
| ReentrantBCryptPasswordEncoder(int strength)constructor with strength. | 
| ReentrantBCryptPasswordEncoder(int strength,
                              SecureRandom random)constructor with strength and random. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | encode(CharSequence rawPassword) | 
| static Boolean | isBCryptEncoded(CharSequence encodedPassword) | 
| boolean | isEncoded(CharSequence encodedPassword) | 
| boolean | matches(CharSequence rawPassword,
       String encodedPassword) | 
public ReentrantBCryptPasswordEncoder()
public ReentrantBCryptPasswordEncoder(int strength)
strength - the log rounds to usepublic ReentrantBCryptPasswordEncoder(int strength,
                                      SecureRandom random)
strength - the log rounds to userandom - the secure random instance to usepublic static Boolean isBCryptEncoded(CharSequence encodedPassword)
public String encode(CharSequence rawPassword)
encode in interface org.springframework.security.crypto.password.PasswordEncoderpublic boolean matches(CharSequence rawPassword, String encodedPassword)
matches in interface org.springframework.security.crypto.password.PasswordEncoderpublic boolean isEncoded(CharSequence encodedPassword)
Copyright © 2017. All rights reserved.