KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > Ostermiller > util > PasswordVerifier


1 /*
2  * Interface to verify passwords.
3  * Copyright (C) 2001-2002 Stephen Ostermiller
4  * http://ostermiller.org/contact.pl?regarding=Java+Utilities
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * See COPYING.TXT for details.
17  */

18
19 package com.Ostermiller.util;
20
21 /**
22  * Interface to verify passwords.
23  *
24  * @author Stephen Ostermiller http://ostermiller.org/contact.pl?regarding=Java+Utilities
25  * @since ostermillerutils 1.00.00
26  */

27 public interface PasswordVerifier {
28     /**
29      * Verify that this password is an ok password. If a password
30      * is not verified it is thrown out and a new password is tried.
31      * Always returning false from this method will cause an infinite
32      * loop.
33      *
34      * @param password an array of characters representing a password.
35      * @return true iff this password is ok.
36      *
37      * @since ostermillerutils 1.00.00
38      */

39     public boolean verify(char[] password);
40
41 }
42
Popular Tags