01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: ListSessions.java 3643 2007-01-12 15:29:45Z gbevin $
07: */
08: package com.uwyn.rife.authentication;
09:
10: /**
11: * <p>This interface to be able to list all the active sessions in a {@link
12: * SessionManager} without having to store them all in memory.
13: *
14: * @author Geert Bevin (gbevin[remove] at uwyn dot com)
15: * @version $Revision: 3643 $
16: * @since 1.0
17: */
18: public interface ListSessions {
19: /**
20: * <p>This method is called when active authentication session was found.
21: *
22: * @param userId the unique ID of the user
23: * @param hostIp the IP address of the host that initiated the session
24: * @param authId the unique identifier of this authentication session
25: * @return {@code true} when the next active session should be
26: * returned; or
27: * <p>{@code false} if the process should be interrupted
28: * @since 1.0
29: */
30: public boolean foundSession(long userId, String hostIp,
31: String authId);
32: }
|