|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrabbit.filter.authenticate.PlainFileAuthenticator
public class PlainFileAuthenticator
An authenticator that reads username and passwords from a plain text file.
Constructor Summary | |
---|---|
PlainFileAuthenticator(SProperties props)
Create a new PlainFileAuthenticator that will be configured using the given properties. |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlainFileAuthenticator(SProperties props)
props
- the configuration for this authenticatorMethod Detail |
---|
public String getToken(HttpHeader header, Connection con)
Authenticator
getToken
in interface Authenticator
header
- the requestcon
- the Connection handling the request
public boolean authenticate(String user, String pwd)
Authenticator
authenticate
in interface Authenticator
user
- the usernamepwd
- the password of the user
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |