CredentialsMatcher

Interface implemented by classes that can determine if an AuthenticationToken's provided credentials matches a corresponding account's credentials stored in the system.

<p>Simple direct comparisons are handled well by the {@link SimpleCredentialsMatcher SimpleCredentialsMatcher}. If you hash user's credentials before storing them in a realm (a common practice), look at the {@link HashedCredentialsMatcher HashedCredentialsMatcher} implementations, as they support this scenario.

@see SimpleCredentialsMatcher @see AllowAllCredentialsMatcher @see Md5CredentialsMatcher @see Sha1CredentialsMatcher

Members

Functions

doCredentialsMatch
bool doCredentialsMatch(AuthenticationToken token, AuthenticationInfo info)

Returns {@code true} if the provided token credentials match the stored account credentials, {@code false} otherwise.

Meta