Password role is to do the comparison of
yesterday, when I carefully tracked throughout the main access to information design, get AuthenticationInfo by uniquely identifies the user and then AuthenticationToken (username and password), compare! Class has a special design, to match the password comparison processing. And complex -
AuthenticatingRealm has a member variable
private CredentialsMatcher credentialsMatcher; matching credentials, the password is more spicy. This is an interface! The default implementation is SimpleCredentialsMatcher this class! Are oriented programming interface of ~
AuthenticatingRealm a class function, achieved by matching, comparing the work of password information.