rabbit.filter.authenticate
Interface Authenticator

All Known Implementing Classes:
PlainFileAuthenticator, SQLAuthenticator

public interface Authenticator

Something that can authenticate users using some kind of database.


Method Summary
 boolean authenticate(String user, String pwd)
          Try to authenticate the user.
 String getToken(HttpHeader header, Connection con)
          Find the token used to authenticate
 

Method Detail

getToken

String getToken(HttpHeader header,
                Connection con)
Find the token used to authenticate

Parameters:
header - the request
con - the Connection handling the request
Returns:
the authentication token

authenticate

boolean authenticate(String user,
                     String pwd)
Try to authenticate the user.

Parameters:
user - the username
pwd - the password of the user
Returns:
true if authentication succeeded, false otherwise.