Package org.forgerock.http.session
Interface SessionManager
-
- All Known Implementing Classes:
JwtSessionManager
public interface SessionManager
A SessionFactory is responsible to create a new type ofSession
.This allows users to extends the default OpenIG behaviour quite easily.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Session
load(Request request)
Loads a new Session for the givenRequest
.void
save(Session session, Response response)
Saves the session into the provided response.
-
-
-
Method Detail
-
load
Session load(Request request)
Loads a new Session for the givenRequest
. The implementations are free to keep a reference to theRequest
.The session object is scoped by the
Request
's own lifecycle.- Parameters:
request
- Request to create a session for.- Returns:
- a new Session instance.
-
save
void save(Session session, Response response) throws IOException
Saves the session into the provided response.- Parameters:
session
- The session to save.response
- The response to save the session to.- Throws:
IOException
- If the session could not be saved to the response.
-
-