KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > util > PasswordGeneratorInterface


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

10
11 package org.mmbase.util;
12
13 /**
14  * Interface for the automatic generation of passwords.
15  * <br />
16  * The passwords generated by classes implementing this interface are based on a template.
17  * A template can exists of a number of characters, which are replaced by
18  * the generator.
19  * The meaning of the characters in a template is left to the implementing class.
20  *
21  * @deprecated no real need for an interface as there is only one implementation
22  * @application SCAN (users)
23  * @author Rico Jansen
24  * @author Pierre van Rooden (javadocs)
25  * @version $Id: PasswordGeneratorInterface.java,v 1.6 2004/09/30 14:07:11 pierre Exp $
26  */

27
28 public interface PasswordGeneratorInterface {
29     /**
30      * Generate a password, based on a default template.
31      * @return the generated password.
32      */

33     public String JavaDoc getPassword();
34
35     /**
36      * Generate a password, based on the given template.
37      * @param template the template the password should be based on.
38      * @return the generated password.
39      */

40     public String JavaDoc getPassword(String JavaDoc template);
41 }
42
Popular Tags