@ThreadSafe public interface SessionManager
| Modifier and Type | Method and Description |
|---|---|
IdPSession |
createSession(String principalName)
Create and return a new
IdPSession object for a subject. |
void |
destroySession(String sessionId,
boolean unbind)
Invalidates or otherwise removes a session from persistent storage and/or unbinds it
from a client.
|
@Nonnull IdPSession createSession(@Nonnull@NotEmpty String principalName) throws SessionException
IdPSession object for a subject.
Implementations may perform additional work to persist or associate the session with the client.
principalName - canonical name of the subject of the sessionSessionException - if the session cannot be createdvoid destroySession(@Nonnull@NotEmpty String sessionId, boolean unbind) throws SessionException
After calling this method, no further method calls on a corresponding IdPSession
object that may be in hand are guaranteed to function correctly. Their behavior is unspecified.
sessionId - the unique ID of the session to destroyunbind - whether the session should be unbound from the clientSessionException - if the session cannot be destroyedCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.