|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrabbit.filter.authenticate.SQLAuthenticator
public class SQLAuthenticator
An authenticator that checks the username/password against an sql database. Will read the following parameters from the config file:
| Constructor Summary | |
|---|---|
SQLAuthenticator(SProperties props)
Create a new SQLAuthenticator that will be configured using the given properties. |
|
| Method Summary | |
|---|---|
boolean |
authenticate(java.lang.String user,
java.lang.String token)
Try to authenticate the user. |
java.lang.String |
getToken(HttpHeader header,
Connection con)
Find the token used to authenticate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SQLAuthenticator(SProperties props)
props - the configuration for this authenticator| Method Detail |
|---|
public java.lang.String getToken(HttpHeader header,
Connection con)
Authenticator
getToken in interface Authenticatorheader - the requestcon - the Connection handling the request
public boolean authenticate(java.lang.String user,
java.lang.String token)
Authenticator
authenticate in interface Authenticatoruser - the usernametoken - the password of the user
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||