public static AuthenticationSessionCompoundId decoded(String rootAuthSessionId, String tabId, String clientUUID) { String encodedId = rootAuthSessionId + "." + tabId + "." + clientUUID; return new AuthenticationSessionCompoundId(rootAuthSessionId, tabId, clientUUID, encodedId); }
@Override public void updateNonlocalSessionAuthNotes(AuthenticationSessionCompoundId compoundId, Map<String, String> authNotesFragment) { if (compoundId == null) { return; } ClusterProvider cluster = session.getProvider(ClusterProvider.class); cluster.notify( InfinispanAuthenticationSessionProviderFactory.AUTHENTICATION_SESSION_EVENTS, AuthenticationSessionAuthNoteUpdateEvent.create(compoundId.getRootSessionId(), compoundId.getTabId(), compoundId.getClientUUID(), authNotesFragment), true, ClusterProvider.DCNotify.ALL_BUT_LOCAL_DC ); }
public static AuthenticationSessionCompoundId fromAuthSession(AuthenticationSessionModel authSession) { return decoded(authSession.getParentSession().getId(), authSession.getTabId(), authSession.getClient().getId()); }
public static AuthenticationSessionCompoundId encoded(String encodedId) { String[] decoded = DOT.split(encodedId, 3); String rootAuthSessionId =(decoded.length > 0) ? decoded[0] : null; String tabId = (decoded.length > 1) ? decoded[1] : null; String clientUUID = (decoded.length > 2) ? decoded[2] : null; return new AuthenticationSessionCompoundId(rootAuthSessionId, tabId, clientUUID, encodedId); }