public class AuthenticationTools extends Object
| Constructor and Description |
|---|
AuthenticationTools() |
| Modifier and Type | Method and Description |
|---|---|
static String |
createSession(String userName,
String userPass)
Authenticates a user and returns the created sessionId.
|
static boolean |
destroySession(String sessionId,
boolean remove)
Logs out a user from the current session.
|
static de.narimo.commons.UserCredentials |
getAndRenewLoggedInUser(String sessionid)
Looks up a session id in the session store and updates the session
expires timestamp.
|
static void |
main(String[] args) |
public static String createSession(String userName, String userPass) throws Exception
userName - userPass - Exceptionpublic static boolean destroySession(String sessionId, boolean remove) throws Exception
sessionId - remove - Exceptionpublic static de.narimo.commons.UserCredentials getAndRenewLoggedInUser(String sessionid) throws Exception
sessionid - ExceptionCopyright © 2020. All rights reserved.