@RequestScoped public class PasswordEncoder extends Object implements org.apache.shiro.authc.credential.PasswordService
| Constructor and Description |
|---|
PasswordEncoder()
Constructor...
|
PasswordEncoder(int logRounds)
Constructor...
|
| Modifier and Type | Method and Description |
|---|---|
String |
encryptPassword(Object plaintextPassword) |
boolean |
passwordsMatch(Object submittedPlaintext,
String encrypted) |
public PasswordEncoder()
public PasswordEncoder(int logRounds)
logRounds - the log rounds for salt generationpublic String encryptPassword(Object plaintextPassword) throws IllegalArgumentException
encryptPassword in interface org.apache.shiro.authc.credential.PasswordServiceplaintextPassword - IllegalArgumentExceptionCopyright © 2018 Arthur Gregorio. All rights reserved.