org.esupportail.cas.server.handlers.reject
Class RejectHandler

java.lang.Object
  extended by org.esupportail.cas.server.util.log.Debug
      extended by org.esupportail.cas.server.util.BasicHandler
          extended by org.esupportail.cas.server.handlers.reject.RejectHandler

public final class RejectHandler
extends BasicHandler

This class implements an reject handler handler class. It is used by GenericHandler to exclude registred users.

Author:
Pascal Aubry

Field Summary
private  java.lang.String userId
          The id of the user that will be rejected.
 
Fields inherited from class org.esupportail.cas.server.util.BasicHandler
FAILED_CONTINUE, FAILED_STOP, SUCCEEDED
 
Constructor Summary
RejectHandler(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.
 
Methods inherited from class org.esupportail.cas.server.util.BasicHandler
checkConfigElement, getConfigElement, getConfigSubElementContent, hasConfigSubElement
 
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
 

Field Detail

userId

private java.lang.String userId
The id of the user that will be rejected.

Constructor Detail

RejectHandler

public RejectHandler(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 file
configDebug - debugging mode of the global configuration
Throws:
java.lang.Exception - Exception
Method Detail

authenticate

public int authenticate(java.lang.String username,
                        java.lang.String password)
Try to authenticate a user.

Specified by:
authenticate in class BasicHandler
Parameters:
username - the user's name
password - the user's password
Returns:
BasicHandler.FAILED_STOP if username matches, BasicHandler.FAILED_CONTINUE otherwise.