| java.lang.Object com.flexive.core.security.LoginLogoutHandler
LoginLogoutHandler | final public class LoginLogoutHandler (Code) | | Provides convenience methods for login and logout of flexive users.
author: Gregor Schober (gregor.schober@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) |
doLogin | public static UserTicket doLogin(String username, String password, boolean takeOver, SessionContext ctx, DataSource ds) throws FxLoginFailedException, FxAccountInUseException(Code) | | Login function.
Parameters: username - The username Parameters: password - The users password Parameters: takeOver - If a other session is already logged in with this unique username the other session isinvalidated (logged out), and this session is logged in. Parameters: ctx - the session context Parameters: ds - the datasource to be used The new UserTicket if the login succeeded, or null if the login failed. throws: FxLoginFailedException - if the login failed throws: FxAccountInUseException - if a other session is already logged in (with this unique username) AND takeover is false |
|
|