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.credentialsmanagers;
10:
11: import com.uwyn.rife.authentication.CredentialsManager;
12: import com.uwyn.rife.ioc.HierarchicalProperties;
13: import com.uwyn.rife.ioc.exceptions.PropertyValueException;
14:
15: /**
16: * Classes that can create {@link CredentialsManager} 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: * @since 1.6
23: */
24: public interface CredentialsManagerFactory {
25: /**
26: * Returns the manager specified by properties.
27: * <p>
28: * The specific properties that are used are determined by the
29: * implementation class.
30: *
31: * @param properties the properties that will setup the manager
32: * @throws PropertyValueException when an error occurred during the retrieval
33: * of the property values
34: * @since 1.6
35: */
36: public CredentialsManager getCredentialsManager(
37: HierarchicalProperties properties)
38: throws PropertyValueException;
39: }
|