| org.esupportail.cas.server.util.BasicHandler org.esupportail.cas.server.util.RedundantHandler
All known Subclasses: org.esupportail.cas.server.handlers.ldap.LdapHandler, org.esupportail.cas.server.handlers.database.DatabaseHandler, org.esupportail.cas.server.handlers.nis.multiple.NisHandler, org.esupportail.cas.server.handlers.nt.NtHandler,
RedundantHandler | abstract public class RedundantHandler extends BasicHandler (Code) | | This abstract class implements a redundant handler, with a list
of servers that will be used for redundancy.
author: Pascal Aubry |
Method Summary | |
final protected void | addServers(boolean serverElementNeeded, String serverClassname) Constructor. | final public int | authenticate(String username, String password) Tries to Authenticate a user by accessing all the servers. | final public List | getServers() retrieve the list of the servers. |
RedundantHandler | protected RedundantHandler(Element handlerElement, Boolean configDebug)(Code) | | Constructor.
Parameters: handlerElement - the XML element that declares the handler in the configuration file Parameters: configDebug - debugging mode of the global configuration |
addServers | final protected void addServers(boolean serverElementNeeded, String serverClassname) throws Exception(Code) | | Constructor.
Parameters: serverElementNeeded - true to force the handler to have at least one server sub-element Parameters: serverClassname - the classname of the server to create for the handler throws: Exception - Exception |
authenticate | final public int authenticate(String username, String password)(Code) | | Tries to Authenticate a user by accessing all the servers.
Parameters: username - the username to authenticate Parameters: password - the correspoding password BasicHandlerSUCCEDED on success, or BasicHandler.FAILED_CONTINUE otherwise. |
getServers | final public List getServers()(Code) | | retrieve the list of the servers.
the list of the servers used for authentication. |
|
|