public interface SessionManagement
Modifier and Type | Interface and Description |
---|---|
static interface |
SessionManagement.AttributeUpdater
Callback interface.
|
Modifier and Type | Method and Description |
---|---|
void |
addSessionParticipant(SessionParticipant... participant)
Adds given participands to the current login session
|
LoginSession |
getCreateSession(long loggedEntity,
pl.edu.icm.unity.types.authn.AuthenticationRealm realm,
String label,
boolean outdatedCredential,
Date absoluteExpiration)
Tries to find a session for the entity in the given realm.
|
LoginSession |
getOwnedSession(pl.edu.icm.unity.types.basic.EntityParam owner,
String realm)
Tries to find a session owned by a given entity in a given realm.
|
LoginSession |
getSession(String id) |
void |
removeSession(String id,
boolean soft)
Removes a given session.
|
void |
updateSessionActivity(String id)
Updates the lastUsed timestamp of a session.
|
void |
updateSessionAttributes(String id,
SessionManagement.AttributeUpdater updater)
Updates the extra attributes of the session.
|
LoginSession getCreateSession(long loggedEntity, pl.edu.icm.unity.types.authn.AuthenticationRealm realm, String label, boolean outdatedCredential, Date absoluteExpiration)
loggedEntity
- realm
- label
- used only when a new session is createdoutdatedCredential
- used only if a new session is createdabsoluteExpiration
- can be null or absolute expiration time (then session is not closed after
inactive timeout).void updateSessionAttributes(String id, SessionManagement.AttributeUpdater updater)
id
- void updateSessionActivity(String id)
id
- void removeSession(String id, boolean soft)
id
- soft
- if true then only the login data is removed from the HTTP session. Otherwise the whole
session is invalidatedLoginSession getSession(String id)
id
- LoginSession getOwnedSession(pl.edu.icm.unity.types.basic.EntityParam owner, String realm) throws pl.edu.icm.unity.exceptions.EngineException
owner
- realm
- pl.edu.icm.unity.exceptions.EngineException
void addSessionParticipant(SessionParticipant... participant)
participant
- Copyright © 2017 Unity. All rights reserved.