SimpleCredentialsMatcher.doCredentialsMatch

This implementation acquires the {@code token}'s credentials (via {@link #getCredentials(AuthenticationToken) getCredentials(token)}) and then the {@code account}'s credentials (via {@link #getCredentials(hunt.shiro.authc.AuthenticationInfo) getCredentials(account)}) and then passes both of them to the {@link #equals(Object,Object) equals(tokenCredentials, accountCredentials)} method for equality comparison.

@param token the {@code AuthenticationToken} submitted during the authentication attempt. @param info the {@code AuthenticationInfo} stored in the system matching the token principal. @return {@code true} if the provided token credentials are equal to the stored account credentials, {@code false} otherwise

class SimpleCredentialsMatcher
bool
doCredentialsMatch

Meta