Java Doc for AuthenticationService.java in  » XML-UI » xui32 » com » xoetrope » service » 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 » XML UI » xui32 » com.xoetrope.service 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.xoetrope.service.AuthenticationService

AuthenticationService
public class AuthenticationService extends ServiceProxy (Code)
Description ServiceProxy Object for handling user authentication. This class should be overloaded so as to implement the required authentication on the server. The 'selfmanaged' attribute should be set to 'true' in the XML declatation if the instance of this class should automatically take care of User Authentication. Set it to false if the user information will be managed manually.

Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial license from Xoetrope.

$Revision: 1.16 $



Field Summary
final public static  StringARG_NAME_MODELID
     The path into the model where the userid is stored if the instance is selfmanaged.
final public static  StringARG_NAME_PASSWORD
    
final public static  StringARG_NAME_USERID
    
final public static  StringERR_INVALID_CREDENTIALS
     Error sent back in the case that invalid credentials have been provided.
protected  booleanokClickedcheckSessionAlive
    
protected  booleanselfManaged
    
protected  Stringusernamepassword
    


Method Summary
public  Objectcall(String serviceName, ServiceContext context)
    
public  voidcenterScreen(Component c)
    
protected  booleancheckCredentials(ServiceProxyArgs args, String userID, String password)
     Overload this method in order to implement custom authentication on the server.
protected  StringgetErrorMsg(String error)
    
protected  StringgetLogonError(ServiceContext context)
    
protected  StringgetPassword()
    
protected  voidgetUserLogon(ServiceContext context, String error)
     Construct a user login screen to capture userid and password.
protected  StringgetUsername()
    
protected  voidlogon(String serviceName, ServiceContext context, String errorMsg)
     Attempt to logon to the server and loop until it works.
public  voidsetAttributes(Hashtable attribs)
     Set the attributes for this service proxy.

Field Detail
ARG_NAME_MODELID
final public static String ARG_NAME_MODELID(Code)
The path into the model where the userid is stored if the instance is selfmanaged.



ARG_NAME_PASSWORD
final public static String ARG_NAME_PASSWORD(Code)
The password pass parameter



ARG_NAME_USERID
final public static String ARG_NAME_USERID(Code)
The userId pass and return parameters name



ERR_INVALID_CREDENTIALS
final public static String ERR_INVALID_CREDENTIALS(Code)
Error sent back in the case that invalid credentials have been provided.



okClickedcheckSessionAlive
protected boolean okClickedcheckSessionAlive(Code)



selfManaged
protected boolean selfManaged(Code)
indicates whether or not User Authentication should be managed automatically



usernamepassword
protected String usernamepassword(Code)





Method Detail
call
public Object call(String serviceName, ServiceContext context) throws ServiceProxyException(Code)
Call this proxy with the specified arguments the result of the call
Parameters:
  context - The ServiceContext contain pass and return parameters
Parameters:
  serviceName - the name of the service being called
throws:
  net.xoetrope.optional.service.ServiceProxyException - Throw an exception if there is a problem with the call



centerScreen
public void centerScreen(Component c)(Code)
Center the screen on the parent
Parameters:
  c - The component to be centered



checkCredentials
protected boolean checkCredentials(ServiceProxyArgs args, String userID, String password)(Code)
Overload this method in order to implement custom authentication on the server.
Parameters:
  userID - the userID to be authenticated
Parameters:
  password - the password of the user boolean indicating whether or not user was successfully authenticated



getErrorMsg
protected String getErrorMsg(String error)(Code)



getLogonError
protected String getLogonError(ServiceContext context)(Code)



getPassword
protected String getPassword()(Code)
Retrieve the entered password the password



getUserLogon
protected void getUserLogon(ServiceContext context, String error)(Code)
Construct a user login screen to capture userid and password.
Parameters:
  context - the context of the call
Parameters:
  error - if the screen is being displayed as a result of an invalidlogin an error will need to be displayed.



getUsername
protected String getUsername()(Code)
Retrieve the entered user name the user name



logon
protected void logon(String serviceName, ServiceContext context, String errorMsg) throws ServiceProxyException(Code)
Attempt to logon to the server and loop until it works.
Parameters:
  serviceName - the name of the service being called
Parameters:
  context - the ServiceContext for the current call
Parameters:
  errorMsg - the error message to diplay if an error was generated.



setAttributes
public void setAttributes(Hashtable attribs)(Code)
Set the attributes for this service proxy. Retrieve the 'selfmanaged' attribute and store it in the class variable
Parameters:
  attribs - The Hashtable of attributes as found in the XML declaration



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