Interface CredentialsMatcher
-
- All Known Implementing Classes:
AllowAllCredentialsMatcher,HashedCredentialsMatcher,Md2CredentialsMatcher,Md5CredentialsMatcher,PasswordMatcher,Sha1CredentialsMatcher,Sha256CredentialsMatcher,Sha384CredentialsMatcher,Sha512CredentialsMatcher,SimpleCredentialsMatcher
public interface CredentialsMatcherInterface implemented by classes that can determine if an AuthenticationToken's provided credentials matches a corresponding account's credentials stored in the system.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 theHashedCredentialsMatcherimplementations, as they support this scenario.- Since:
- 0.1
- See Also:
SimpleCredentialsMatcher,AllowAllCredentialsMatcher,Md5CredentialsMatcher,Sha1CredentialsMatcher
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandoCredentialsMatch(AuthenticationToken token, AuthenticationInfo info)Returnstrueif the provided token credentials match the stored account credentials,falseotherwise.
-
-
-
Method Detail
-
doCredentialsMatch
boolean doCredentialsMatch(AuthenticationToken token, AuthenticationInfo info)
Returnstrueif the provided token credentials match the stored account credentials,falseotherwise.- Parameters:
token- theAuthenticationTokensubmitted during the authentication attemptinfo- theAuthenticationInfostored in the system.- Returns:
trueif the provided token credentials match the stored account credentials,falseotherwise.
-
-