pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.accesscontrol.authentication
Class AuthenticationAdapter

java.lang.Object
  extended by org.torweg.pulse.accesscontrol.authentication.AuthenticationAdapter

public final class AuthenticationAdapter
extends java.lang.Object

is an AuthenticationAdapter to allow a login to pulse from an external source.

Version:
$Revision: 1380 $
Author:
Thomas Weber

Method Summary
static boolean authenticate(javax.servlet.http.HttpServletRequest request, java.lang.String username, java.lang.String password)
          tries to authenticate the given user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

authenticate

public static boolean authenticate(javax.servlet.http.HttpServletRequest request,
                                   java.lang.String username,
                                   java.lang.String password)
tries to authenticate the given user.

Parameters:
request - the request
username - the name of the user
password - the user's password
Returns:
true, if the user could be authenticated. Otherwise false.