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 |
createSession(long loggedEntity,
pl.edu.icm.unity.types.authn.AuthenticationRealm realm,
String label,
String outdatedCredentialId,
LoginSession.RememberMeInfo rememberMeInfo,
String firstFactorOptionId,
String secondFactorOptionId)
Creates new session
|
LoginSession |
getCreateSession(long loggedEntity,
pl.edu.icm.unity.types.authn.AuthenticationRealm realm,
String label,
String outdatedCredentialId,
LoginSession.RememberMeInfo rememberMeInfo,
String firstFactorOptionId,
String secondFactorOptionId)
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 |
recordAdditionalAuthentication(String id,
String optionId)
Records additional re-authentication fact to the session
|
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, String outdatedCredentialId, LoginSession.RememberMeInfo rememberMeInfo, String firstFactorOptionId, String secondFactorOptionId)
loggedEntity
- realm
- label
- used only when a new session is createdoutdatedCredential
- used only if a new session is createdrememberMeInfo
- information about remember me steps
inactive timeout).LoginSession createSession(long loggedEntity, pl.edu.icm.unity.types.authn.AuthenticationRealm realm, String label, String outdatedCredentialId, LoginSession.RememberMeInfo rememberMeInfo, String firstFactorOptionId, String secondFactorOptionId)
loggedEntity
- realm
- label
- used only when a new session is createdoutdatedCredential
- used only if a new session is createdrememberMeInfo
- information about remember me stepsvoid updateSessionAttributes(String id, SessionManagement.AttributeUpdater updater)
id
- void updateSessionActivity(String id)
id
- void recordAdditionalAuthentication(String id, String optionId)
id
- optionId
- 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 © 2019 Unity. All rights reserved.