01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com> and
03: * Steven Grimm <koreth[remove] at midwinter 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;
10:
11: import com.uwyn.rife.tools.StringEncryptor;
12:
13: /**
14: * Credentials managers that can encrypt passwords implement this interface.
15: * The authentication element deployer will pass them a password encryptor
16: * based on the element configuration.
17: *
18: * @author Steven Grimm (koreth[remove] at midwinter dot com)
19: * @author Geert Bevin (gbevin[remove] at uwyn dot com)
20: * @version $Revision: $
21: * @since 1.6
22: */
23: public interface PasswordEncrypting {
24: /**
25: * Sets the password encryptor to use to encrypt this credentials
26: * manager's passwords.
27: *
28: * @param passwordEncryptor the password ecryptor that will be used
29: * @since 1.6
30: */
31: public void setPasswordEncryptor(StringEncryptor passwordEncryptor);
32: }
|