01: /*
02: * Copyright 2001-2007 Steven Grimm <koreth[remove] at midwinter dot com> and
03: * Geert Bevin <gbevin[remove] at uwyn dot com>
04: * Distributed under the terms of either:
05: * - the common development and distribution license (CDDL), v1.0; or
06: * - the GNU Lesser General Public License, v2.1 or later
07: * $Id$
08: */
09: package com.uwyn.rife.authentication.sessionvalidators;
10:
11: import com.uwyn.rife.authentication.SessionValidator;
12: import com.uwyn.rife.ioc.HierarchicalProperties;
13: import com.uwyn.rife.ioc.exceptions.PropertyValueException;
14:
15: /**
16: * Classes that can create {@link SessionValidator} objects implement
17: * this interface.
18: *
19: * @author Steven Grimm (koreth[remove] at midwinter dot com)
20: * @author Geert Bevin (gbevin[remove] at uwyn dot com)
21: * @version $Revision: $
22: * @see SessionValidator
23: * @since 1.6
24: */
25: public interface SessionValidatorFactory {
26: /**
27: * Returns the manager specified by properties.
28: * <p>
29: * The specific properties that are used are determined by the
30: * implementation class.
31: *
32: * @param properties the properties that will setup the manager
33: * @throws PropertyValueException when an error occurred during the retrieval
34: * of the property values
35: * @since 1.6
36: */
37: public SessionValidator getValidator(
38: HierarchicalProperties properties)
39: throws PropertyValueException;
40: }
|