}
// --------------------------------------------------------- Public Methods
public WorkflowParticipant authenticate(String username, String credentials)
{
// Does a user with this username exist?
WorkflowParticipant user = userDatabase.findParticipant(username);
if (user == null)
{
return (null);
}
// Do the credentials specified by the user match?
// FIXME - Update all realms to support encoded passwords
boolean validated = false;
validated = credentials.equals(user.getPassword());
if (!validated)
{
if (debug >= 2)
{
log(sm.getString("userDatabaseRealm.authenticateFailure", username));