Java Doc for BasicHandler.java in  » Groupware » LibreSource » org » esupportail » cas » server » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Groupware » LibreSource » org.esupportail.cas.server.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.esupportail.cas.server.util.log.Debug
      org.esupportail.cas.server.util.BasicHandler

All known Subclasses:   org.esupportail.cas.server.util.RedundantHandler,  org.esupportail.cas.server.handlers.test.PasswordEqualsUsernameHandler,  org.esupportail.cas.server.handlers.nis.NisHandler,  org.esupportail.cas.server.handlers.test.EmptyPasswordHandler,  org.esupportail.cas.server.handlers.file.FileHandler,  org.esupportail.cas.server.handlers.example.ExampleHandler,  org.esupportail.cas.server.handlers.reject.RejectHandler,  org.esupportail.cas.server.handlers.database.LSDatabaseHandler,
BasicHandler
abstract public class BasicHandler extends Debug (Code)
This class implements a basic handler, without any property. This abstract class is inherited by any handler.
author:
   Pascal Aubry


Field Summary
final protected static  intFAILED_CONTINUE
     The value return by authenticate() when the authentication failed but the next handler should be tried.
final public static  intFAILED_STOP
     The value return by authenticate() when the authentication failed and the authentication process should stop.
final public static  intSUCCEEDED
     The value return by authenticate() when the authentication was successfull.

Constructor Summary
protected  BasicHandler(Element handlerElement, Boolean configDebug)
     Constructor.

Method Summary
abstract public  intauthenticate(String username, String password)
     Tries to Authenticate a user by accessing all the servers..
final protected  voidcheckConfigElement(boolean configElementNeeded)
     Check the "config" XML element if needed.
final protected  ElementgetConfigElement()
     Retrieve the XML element the represents the configuration of the handler in the configuration file.
final protected  StringgetConfigSubElementContent(String elementName, boolean needed)
     Retrieve the content of a config sub-element.
final protected  booleanhasConfigSubElement(String elementName)
     Tell if a config sub-element is present.

Field Detail
FAILED_CONTINUE
final protected static int FAILED_CONTINUE(Code)
The value return by authenticate() when the authentication failed but the next handler should be tried.



FAILED_STOP
final public static int FAILED_STOP(Code)
The value return by authenticate() when the authentication failed and the authentication process should stop.



SUCCEEDED
final public static int SUCCEEDED(Code)
The value return by authenticate() when the authentication was successfull.




Constructor Detail
BasicHandler
protected BasicHandler(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




Method Detail
authenticate
abstract 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 corresponding password SUCCEDED on success, FAILED_CONTINUE or FAILED_STOP otherwise.



checkConfigElement
final protected void checkConfigElement(boolean configElementNeeded) throws Exception(Code)
Check the "config" XML element if needed.
Parameters:
  configElementNeeded - true if a config element is needed
throws:
  Exception - Exception



getConfigElement
final protected Element getConfigElement()(Code)
Retrieve the XML element the represents the configuration of the handler in the configuration file. an XML element.



getConfigSubElementContent
final protected String getConfigSubElementContent(String elementName, boolean needed) throws Exception(Code)
Retrieve the content of a config sub-element.
Parameters:
  elementName - the name of the XML element to look for
Parameters:
  needed - false if the element can be absent or empty, true otherwise a String
throws:
  Exception - Exception



hasConfigSubElement
final protected boolean hasConfigSubElement(String elementName) throws Exception(Code)
Tell if a config sub-element is present.
Parameters:
  elementName - the name of the XML element to look for true if the element is present, false otherwise
throws:
  Exception - Exception



Methods inherited from org.esupportail.cas.server.util.log.Debug
final protected Class checkClass(String classname) throws Exception(Code)(Java Doc)
public static boolean elementDebugValue(Element element, boolean defaultValue)(Code)(Java Doc)
final public boolean isDebug()(Code)(Java Doc)
final public void setDebug(boolean d)(Code)(Java Doc)
final protected void trace(String str)(Code)(Java Doc)
final protected void trace(Object obj)(Code)(Java Doc)
final protected void traceBegin()(Code)(Java Doc)
final protected void traceEnd(String str)(Code)(Java Doc)
final protected void traceEnd(Object obj)(Code)(Java Doc)
final protected void traceEnd()(Code)(Java Doc)
final protected void traceThrow(Exception e) throws Exception(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.