public interface CredentialsMatcher
Simple direct comparisons are handled well by the
SimpleCredentialsMatcher. If you
hash user's credentials before storing them in a realm (a common practice), look at the
HashedCredentialsMatcher implementations,
as they support this scenario.
SimpleCredentialsMatcher,
AllowAllCredentialsMatcher,
Md5CredentialsMatcher,
Sha1CredentialsMatcher| Modifier and Type | Method and Description |
|---|---|
boolean |
doCredentialsMatch(AuthenticationToken token,
AuthenticationInfo info)
Returns
true if the provided token credentials match the stored account credentials,
false otherwise. |
boolean doCredentialsMatch(AuthenticationToken token, AuthenticationInfo info)
true if the provided token credentials match the stored account credentials,
false otherwise.token - the AuthenticationToken submitted during the authentication attemptinfo - the AuthenticationInfo stored in the system.true if the provided token credentials match the stored account credentials,
false otherwise.Copyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.