loginPreviousUser(User, String, SessionData) method
This method is called when a user has previously logged into Agentry successfully, and is now logging in again due to having been disconnected.
Syntax
public
void
loginPreviousUser
(
User
user
,
String
password
,
SessionData
sessionData
) throws LoginException
Parameters
-
user –
The User object that identifies the client user. The user name can be read from this object.
-
password –
The password for the current user, as entered on the client application.
-
sessionData –
Provides access to current session data, such as Agentry Server Data Markup Language (SDML) values.
Exceptions
-
LoginException class –
if the login fails for any reason, or if the login succeeds but an exceptional condition exists (such as an expired or soon-to-be expired password).
Usage
This method is only called if both the enableAuthentication and enablePreviousUserAuthentication options are true in the Agentry.ini file for the Java system connection. It should function in the same manner as login(User, String, SessionData).
The default implementation of this method throws LoginSkippedException.