KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > snaq > db > PasswordDecoder


1 /*
2     DBPool - JDBC Connection Pool Manager
3     Copyright (c) Giles Winstanley
4 */

5 package snaq.db;
6
7 import java.sql.*;
8
9 /**
10  * Interface for decoding database passwords.
11  * This interface can be implemented by a class in order to provide custom
12  * database password decoding. To use the custom decoder class make
13  * sure you call the <tt>setPasswordDecoder</tt> method in either the
14  * <tt>ConnectionPool</tt> object or the <tt>ConnectionPoolManager</tt>
15  * in your code (or use the properties file version with the pool manager).
16  * @author Giles Winstanley
17  */

18 public interface PasswordDecoder
19 {
20     char[] decode(String JavaDoc encoded);
21 }
Popular Tags