public class ShiroPasswordEncoder extends java.lang.Object implements PasswordEncoder
PasswordService from Apache Shiro
Add the shiro-core dependency to use this class.| Constructor and Description |
|---|
ShiroPasswordEncoder(org.apache.shiro.authc.credential.PasswordService delegate) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
encode(java.lang.String password)
Encode a password.
|
org.apache.shiro.authc.credential.PasswordService |
getDelegate() |
boolean |
matches(java.lang.String plainPassword,
java.lang.String encodedPassword)
Validate if a plainPassword matches
|
void |
setDelegate(org.apache.shiro.authc.credential.PasswordService delegate) |
public ShiroPasswordEncoder(org.apache.shiro.authc.credential.PasswordService delegate)
public java.lang.String encode(java.lang.String password)
PasswordEncoderencode in interface PasswordEncoderpassword - the not encoded passwordpublic boolean matches(java.lang.String plainPassword,
java.lang.String encodedPassword)
PasswordEncodermatches in interface PasswordEncoderplainPassword - the not encoded password to checkencodedPassword - the encoded passwordtrue if they matchpublic org.apache.shiro.authc.credential.PasswordService getDelegate()
public void setDelegate(org.apache.shiro.authc.credential.PasswordService delegate)
Copyright © 2018. All Rights Reserved.