Package net.shibboleth.idp.session
Interface SessionManager
-
@ThreadSafe public interface SessionManagerComponent that manages sessions between the IdP and client devices.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IdPSessioncreateSession(String principalName)Create and return a newIdPSessionobject for a subject.voiddestroySession(String sessionId, boolean unbind)Invalidates or otherwise removes a session from persistent storage and/or unbinds it from a client.
-
-
-
Method Detail
-
createSession
@Nonnull IdPSession createSession(@Nonnull @NotEmpty String principalName) throws SessionException
Create and return a newIdPSessionobject for a subject.Implementations may perform additional work to persist or associate the session with the client.
- Parameters:
principalName- canonical name of the subject of the session- Returns:
- the newly created session
- Throws:
SessionException- if the session cannot be created
-
destroySession
void destroySession(@Nonnull @NotEmpty String sessionId, boolean unbind) throws SessionException
Invalidates or otherwise removes a session from persistent storage and/or unbinds it from a client.After calling this method, no further method calls on a corresponding
IdPSessionobject that may be in hand are guaranteed to function correctly. Their behavior is unspecified.- Parameters:
sessionId- the unique ID of the session to destroyunbind- whether the session should be unbound from the client- Throws:
SessionException- if the session cannot be destroyed
-
-