|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectedu.yale.its.tp.cas.auth.provider.WatchfulPasswordHandler
org.esupportail.cas.server.GenericHandler
public final class GenericHandler
This class permits via a Xml configuration file to call different specific handler
| Field Summary | |
|---|---|
private static boolean |
acceptEmptyPasswords
a boolean to store wheter empty passwords can be accepted or not. |
private static java.lang.String |
CASGENERICHANDLER_RELEASE
the package release number. |
private static long |
configDate
the last time the configuration file was modified |
private static java.lang.String |
configFilename
the name of the configuration file. |
private static boolean |
debug
Debugging mode. |
private static java.util.List |
handlers
the list of all the specific handlers to try for authentication. |
| Constructor Summary | |
|---|---|
GenericHandler()
|
|
| Method Summary | |
|---|---|
boolean |
authenticate(javax.servlet.ServletRequest request,
java.lang.String username,
java.lang.String password)
Try to authenticate a user by calling all the handlers found in the configuration file. |
private static boolean |
configFileModified()
tell if the configuration file was modified. |
private static java.lang.String |
getConfigFileName()
Retrieve the name of the file storing the configuration. |
private void |
readConfigFile()
Scans an XML configuration file and builds the structure needed for authentication (a list of specific handlers). |
| Methods inherited from class edu.yale.its.tp.cas.auth.provider.WatchfulPasswordHandler |
|---|
registerFailure |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static boolean acceptEmptyPasswords
private static final java.lang.String CASGENERICHANDLER_RELEASE
private static long configDate
private static java.lang.String configFilename
private static boolean debug
private static java.util.List handlers
| Constructor Detail |
|---|
public GenericHandler()
| Method Detail |
|---|
public boolean authenticate(javax.servlet.ServletRequest request,
java.lang.String username,
java.lang.String password)
authenticate in interface edu.yale.its.tp.cas.auth.PasswordHandlerauthenticate in class edu.yale.its.tp.cas.auth.provider.WatchfulPasswordHandlerrequest - the current requestusername - the username provided by the userpassword - the password provided by the user
private static boolean configFileModified()
private static java.lang.String getConfigFileName()
private void readConfigFile()
throws MisconfiguredHandlerException
MisconfiguredHandlerException - MisconfiguredHandlerException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||