HashedCredentialsMatcher.doCredentialsMatch

This implementation first hashes the {@code token}'s credentials, potentially using a {@code salt} if the {@code info} argument is a {@link hunt.shiro.authc.SaltedAuthenticationInfo SaltedAuthenticationInfo}. It then compares the hash against the {@code AuthenticationInfo}'s {@link #getCredentials(hunt.shiro.authc.AuthenticationInfo) already-hashed credentials}. This method returns {@code true} if those two values are {@link #equals(Object, Object) equal}, {@code false} otherwise.

@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 hash match to the stored account credentials hash, {@code false} otherwise @since 1.1

class HashedCredentialsMatcher
override
bool
doCredentialsMatch

Meta