public class BCryptPasswordEncoder extends Object implements PasswordEncoder
PasswordEncoder
based on BCryptConstructor and Description |
---|
BCryptPasswordEncoder(int logRounds)
Create
BCryptPasswordEncoder |
public BCryptPasswordEncoder(int logRounds)
BCryptPasswordEncoder
logRounds
- default is 12. Range is 4 to 31public String encode(String rawPassword)
PasswordEncoder
Encodes given password.
encode
in interface PasswordEncoder
public boolean verify(String rawPassword, String encodedPassword)
PasswordEncoder
Checks if the rawPassword
and encodedPassword
matches.
verify
in interface PasswordEncoder
Copyright © 2018 JBoss by Red Hat. All rights reserved.