Interface AuthenticatedClientSessionMapping
- All Superinterfaces:
Map<String,AuthenticatedClientSessionModel>
public interface AuthenticatedClientSessionMapping
extends Map<String,AuthenticatedClientSessionModel>
It gives a read-only view of the
AuthenticatedClientSessionModel belonging to a
UserSessionModel though the Map interface where the key is the Client ID.
Any direct modification via the Map interface will throw an UnsupportedOperationException. To add a
new mapping, use a method like UserSessionProvider.createClientSession(RealmModel, ClientModel, UserSessionModel) or
equivalent. To remove a mapping, use AuthenticatedClientSessionModel.detachFromUserSession().
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoidNotifies the associatedUserSessionModelhas been restarted.Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Method Details
-
onUserSessionRestart
void onUserSessionRestart()Notifies the associatedUserSessionModelhas been restarted.All the
AuthenticatedClientSessionModelmust be detached.
-