org.esupportail.cas.server.handlers.file
Class FileHandler
java.lang.Object
org.esupportail.cas.server.util.log.Debug
org.esupportail.cas.server.util.BasicHandler
org.esupportail.cas.server.handlers.file.FileHandler
public final class FileHandler
- extends BasicHandler
The specific Handler for file.
- Author:
- Pascal Aubry , Jean-Baptiste Daniel
|
Field Summary |
private java.lang.String |
encryption
the encryption used to store passwords. |
private java.lang.String |
filename
The filename to read. |
private java.lang.String |
separator
The character used to sperate fields in the file. |
|
Constructor Summary |
FileHandler(org.dom4j.Element handlerElement,
java.lang.Boolean configDebug)
Constructor. |
|
Method Summary |
int |
authenticate(java.lang.String username,
java.lang.String password)
Try to authenticate a user (by searching into a file). |
| Methods inherited from class org.esupportail.cas.server.util.log.Debug |
checkClass, elementDebugValue, isDebug, setDebug, trace, trace, traceBegin, traceEnd, traceEnd, traceEnd, traceThrow |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
encryption
private java.lang.String encryption
- the encryption used to store passwords.
filename
private java.lang.String filename
- The filename to read.
separator
private java.lang.String separator
- The character used to sperate fields in the file.
FileHandler
public FileHandler(org.dom4j.Element handlerElement,
java.lang.Boolean configDebug)
throws java.lang.Exception
- Constructor.
- Parameters:
handlerElement - the XML element that declares the handler
in the configuration fileconfigDebug - debugging mode of the global configuration
- Throws:
java.lang.Exception - Exception
authenticate
public int authenticate(java.lang.String username,
java.lang.String password)
- Try to authenticate a user (by searching into a file).
- Specified by:
authenticate in class BasicHandler
- Parameters:
username - the user's namepassword - the user's password
- Returns:
- BasicHandler.SUCCEDED on success, or
BasicHandler.FAILED_CONTINUE otherwise.