Lines Matching refs:session

17 package org.forgerock.openam.session.blacklist;
22 import com.iplanet.dpro.session.Session;
23 import com.iplanet.dpro.session.SessionException;
24 import com.iplanet.dpro.session.service.SessionConstants;
25 import com.iplanet.dpro.session.service.SessionServerConfig;
26 import com.iplanet.dpro.session.service.SessionServiceConfig;
56 * for each session that has been blacklisted. Normal CTS reaper process will remove sessions from the blacklist
63 * changes for the lifetime of the session).</li>
64 * <li>{@link CoreTokenField#DATE_ONE} - the timestamp (millisecond precision) at which the session was first
66 * <li>{@link CoreTokenField#STRING_ONE} - the ID of the <em>server</em> on which the session was first
85 * CTS field to store the time at which each session was blacklisted.
111 public void blacklist(final Session session) throws SessionException {
112 DEBUG.message("CTSSessionBlacklist: Blacklisting session: {}", session);
115 final Token token = new Token(session.getStableStorageID(), TokenType.SESSION_BLACKLIST);
116 token.setExpiryTimestamp(timeOf(session.getBlacklistExpiryTime(purgeDelayMs)));
121 DEBUG.error("CTSSessionBlacklist: Error blacklisting session", ex);
125 notifyListeners(session);
129 public boolean isBlacklisted(final Session session) throws SessionException {
131 return cts.read(session.getStableStorageID()) != null;
144 // Schedule a task to update the listener with the current session blacklist
167 private void notifyListeners(Session session) throws SessionException {
168 notifyListeners(session.getStableStorageID(), session.getBlacklistExpiryTime(purgeDelayMs));
191 DEBUG.error("CTSSessionBlacklist: CTS failure while polling session blacklist: {}", e, e);
226 DEBUG.message("CTSSessionBlacklist: Processing {} session blacklist notifications", results.size());