public class DefaultSessionManager extends Object implements SessionManager
ANONYMOUS_USER
Constructor and Description |
---|
DefaultSessionManager(BambooUserManager bambooUserManager)
Default constructor that uses the default user timeout
|
DefaultSessionManager(BambooUserManager bambooUserManager,
int sessionTimeout,
TimeUnit timeUnit) |
Modifier and Type | Method and Description |
---|---|
String |
getUserNameFromSession(String sessionId)
What is the username associated with this session?
|
String |
login(String username,
String password)
Allow remote users to login to bamboo, providing them with a session id to pass into remote methods.
|
void |
logout(String sessionId)
Log users out of the session
|
public DefaultSessionManager(BambooUserManager bambooUserManager)
public DefaultSessionManager(BambooUserManager bambooUserManager, int sessionTimeout, TimeUnit timeUnit)
public String login(String username, String password) throws BambooRemoteException
login
in interface SessionManager
username
- The username we want to login underpassword
- The password associatedd with the usernameBambooRemoteException
- Failed to loginpublic void logout(String sessionId)
logout
in interface SessionManager
sessionId
- The session identifierpublic String getUserNameFromSession(String sessionId) throws BambooRemoteException
getUserNameFromSession
in interface SessionManager
sessionId
- The session identifierBambooRemoteException
- Unknown or timed out session,Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.