Package org.yamcs.security
Class SessionManager
java.lang.Object
org.yamcs.security.SessionManager
Implementation-agnostic session store. Sessions have a limited lifespan, but can be renewed before expiring.
In a future iteration, UserSession could be split into UserSession and ClientSession for covering implementations that support SSO across multiple clients (e.g. OIDC).
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSessionListener
(SessionListener listener) createSession
(AuthenticationInfo authenticationInfo, String ipAddress, String hostname) getSession
(String id) void
void
removeSessionListener
(SessionListener listener) void
renewSession
(String id)
-
Field Details
-
log
-
-
Constructor Details
-
SessionManager
public SessionManager()
-
-
Method Details
-
createSession
public UserSession createSession(AuthenticationInfo authenticationInfo, String ipAddress, String hostname) -
getSession
-
getSessions
-
renewSession
- Throws:
SessionExpiredException
-
invalidateSession
-
addSessionListener
-
removeSessionListener
-