| 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 $
|
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
|
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 |
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 |
|
|