01: /*
02: DBPool - JDBC Connection Pool Manager
03: Copyright (c) Giles Winstanley
04: */
05: package snaq.db;
06:
07: import java.sql.*;
08:
09: /**
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: char[] decode(String encoded);
20: }
|