public class SimpleCredentialsMatcher extends CodecSupport implements org.apache.shiro.authc.credential.CredentialsMatcher
HashedCredentialsMatcherPREFERRED_ENCODING| 构造器和说明 |
|---|
SimpleCredentialsMatcher() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
doCredentialsMatch(org.apache.shiro.authc.AuthenticationToken token,
org.apache.shiro.authc.AuthenticationInfo info)
This implementation acquires the
token's credentials
(via getCredentials(token))
and then the account's credentials
(via getCredentials(account)) and then passes both of
them to the equals(tokenCredentials, accountCredentials) method for equality
comparison. |
public boolean doCredentialsMatch(org.apache.shiro.authc.AuthenticationToken token,
org.apache.shiro.authc.AuthenticationInfo info)
token's credentials
(via getCredentials(token))
and then the account's credentials
(via getCredentials(account)) and then passes both of
them to the equals(tokenCredentials, accountCredentials) method for equality
comparison.doCredentialsMatch 在接口中 org.apache.shiro.authc.credential.CredentialsMatchertoken - the AuthenticationToken submitted during the authentication attempt.info - the AuthenticationInfo stored in the system matching the token principal.true if the provided token credentials are equal to the stored account credentials,
false otherwiseCopyright © 2015-2017. All Rights Reserved.